diff --git a/share/qtcreator/qmldesigner/propertyeditor/Qt/ExpressionEditor.qml b/share/qtcreator/qmldesigner/propertyeditor/Qt/ExpressionEditor.qml
index 2c79092d7d1abdfbed50899bfaef6767043e4c72..483efc6ce517eee36885940367d91206f5813457 100644
--- a/share/qtcreator/qmldesigner/propertyeditor/Qt/ExpressionEditor.qml
+++ b/share/qtcreator/qmldesigner/propertyeditor/Qt/ExpressionEditor.qml
@@ -9,7 +9,12 @@ QWidget {
     height: 40
     property bool active: false
     property variant backendValue;
-
+    
+    property bool selectionFlag: selectionChanged
+    
+    onSelectionFlagChanged: {
+        expressionEdit.active = false;    
+    }
 
     onActiveChanged: {
         if (active) {