ActionBar: ComboBox doppel dropdown gefixt
authorSven Schöling <s.schoeling@linet-services.de>
Thu, 20 Oct 2016 09:46:16 +0000 (11:46 +0200)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 28 Feb 2017 09:04:33 +0000 (10:04 +0100)
js/kivi.ActionBar.js

index 1c883ed..940f2f9 100644 (file)
@@ -16,10 +16,12 @@ namespace('kivi', function(k){
     this.list     = e.childNodes[0];
     this.init();
   }
+
   k.ActionBarCombobox.prototype = {
     init: function() {
       var obj = this;
       $(obj.toggle).on('click', function(event){
+        $('div.' + CLASSES.combobox + '[id!=' + obj.combobox.id + ']').removeClass(CLASSES.active);
         $(obj.combobox).toggleClass(CLASSES.active);
         event.stopPropagation();
       });