Searchbar doesnt collapse after keyboard input

When I use the searchbar to find apps. The Bar moves up to make space for the keyboard.
When I then open a App and afterwards go back to the homescreen, the searchbar stays in the same position where it was when there was still a keyboard on the screen.
(When I cancel the search with “back” the searchbar moves correctly to the bottom.)

I am using a OnePlus 5 with Android 9