aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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