feat(ui/modules/Common/Form/SearchBox): reset search field text at close event

This commit is contained in:
Ronan Abhamon 2017-06-12 11:00:41 +02:00
parent 33b9ad9569
commit 356634e9b2

View file

@ -3,8 +3,6 @@ import QtQuick 2.7
import Common 1.0
import Utils 1.0
// =============================================================================
// Specific GNU/Linux version of `SearchBox` component.
// =============================================================================
Item {
@ -141,7 +139,9 @@ Item {
ScriptAction {
script: {
menu.close()
searchField.focus = false
searchField.text = ''
searchBox.menuClosed()
}