ソースを参照

AMBARI-10619. Clicking on text area of combo should drop down entries (Richard Zang via srimanth)

Srimanth Gunturi 10 年 前
コミット
54c5fbe17b

+ 10 - 0
ambari-web/app/views/common/configs/widgets/combo_config_widget_view.js

@@ -113,6 +113,16 @@ App.ComboConfigWidgetView = App.ConfigWidgetView.extend({
   restoreValue: function() {
   restoreValue: function() {
     this._super();
     this._super();
     this.setConfigValue({ context: this.get('config.defaultValue') });
     this.setConfigValue({ context: this.get('config.defaultValue') });
+  },
+
+  /**
+   * Delegate event from text input in combo widget to trigger dropdown
+   */
+  click: function(event) {
+    if (event.target.className.contains('ember-text-field')) {
+      $(event.target).closest('.dropdown').toggleClass('open');
+      return false;
+    }
   }
   }
 
 
 });
 });