Unable to search in gedit

I am using Ubuntu 16.04 on Lenovo X1 carbon 5th gen laptop. My system is fully up to date and the version of gedit is 3.18.3. From last week onwards I am unable to perform a search on gedit. When ctrl + f is pressed the search field becomes available on top right corner and upon pressing the first letter of the word for searching, the search field disappears leaving unable to search in gedit How to fix this?