clear textfield after closing sidebar

when this is not done, the content of the textfield remains and next
time the sidebar is opened, the item according to the textinput is
selected