Skip to content

Commit

Permalink
Merge pull request #36 from unicef-polymer/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
adi130987 authored Jan 9, 2017
2 parents 1da51b1 + 60039ff commit c6de2ed
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions etools-searchable-multiselection-menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,6 @@
position: relative;
}

.dropdown-opened .value-container,
.dropdown-opened .multi-container {
visibility: hidden;
}


#dropdownMenu {
position: absolute;
right: 0;
Expand Down Expand Up @@ -227,7 +221,7 @@
dynamic-align$="[[dynamicAlign]]"
disabled="[[disabled]]">

<paper-icon-button icon="arrow-drop-down" class="dropdown-trigger "></paper-icon-button>
<paper-icon-button icon="arrow-drop-down" class="dropdown-trigger"></paper-icon-button>

<div class="dropdown-content">

Expand Down Expand Up @@ -446,10 +440,14 @@
},

_openMenu: function() {
if (this.value && this.value instanceof Array && this.value.length > 0) {
return;
}
this.set('menuOpened', true);
this.debounce('openDropdown', function () {
if (this.value && this.value instanceof Array && this.value.length > 0) {
return;
}
if (!this.menuOpened) {
this.set('menuOpened', true);
}
}.bind(this), 100);
},

_onDropdownOpen: function() {
Expand Down

0 comments on commit c6de2ed

Please sign in to comment.