aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2019-12-19 19:43:32 -0500
committerluigi1111 <luigi1111w@gmail.com>2019-12-19 19:43:32 -0500
commit4aac66a024bfcd4259a6133abd670bc8f7289a55 (patch)
tree026b820bc502cb44f45f684a12bb48f4353a3930
parent598de0f03fe2c1f3c9cddfb333e7dcdb0679002b (diff)
parent131769f1754e9dcd268726a97cb9c20dbe7ae1ba (diff)
downloadmonzero-gui-4aac66a024bfcd4259a6133abd670bc8f7289a55.tar.gz
monzero-gui-4aac66a024bfcd4259a6133abd670bc8f7289a55.tar.xz
monzero-gui-4aac66a024bfcd4259a6133abd670bc8f7289a55.zip
Merge pull request #2625
131769f fix dropdown closure behavior (tobtoht)
-rw-r--r--components/DatePicker.qml1
-rw-r--r--components/StandardDropdown.qml1
2 files changed, 2 insertions, 0 deletions
diff --git a/components/DatePicker.qml b/components/DatePicker.qml
index 1908e1b3..8b276c88 100644
--- a/components/DatePicker.qml
+++ b/components/DatePicker.qml
@@ -251,6 +251,7 @@ Item {
QtQuickControls2.Popup {
id: popup
padding: 0
+ closePolicy: QtQuickControls2.Popup.CloseOnEscape | QtQuickControls2.Popup.CloseOnPressOutsideParent
Rectangle {
id: calendarRect
diff --git a/components/StandardDropdown.qml b/components/StandardDropdown.qml
index aefb5197..dca9ebe9 100644
--- a/components/StandardDropdown.qml
+++ b/components/StandardDropdown.qml
@@ -126,6 +126,7 @@ Item {
Popup {
id: popup
padding: 0
+ closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent
Rectangle {
id: droplist