Query history and typeahead. Fix for wrapping in timepicker editor

...in timepicker editor