From 356634e9b2fc69eaefdc87bc78422be82fe77c8e Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Mon, 12 Jun 2017 11:00:41 +0200 Subject: [PATCH] feat(ui/modules/Common/Form/SearchBox): reset search field text at close event --- linphone-desktop/ui/modules/Common/Form/SearchBox.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linphone-desktop/ui/modules/Common/Form/SearchBox.qml b/linphone-desktop/ui/modules/Common/Form/SearchBox.qml index 84aeedda0..76aae7a51 100644 --- a/linphone-desktop/ui/modules/Common/Form/SearchBox.qml +++ b/linphone-desktop/ui/modules/Common/Form/SearchBox.qml @@ -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() }