angular2-multiselect-dropdown
angular2-multiselect-dropdown copied to clipboard
onOpen doesn't fire when specifying c-search
I'm using my own custom search function, so I use <c-search>
to supply my own <input>
. onOpen doesn't fire when using c-search.
Example: https://stackblitz.com/edit/angular-3tcuzj
add event click to select
static openSelect($event) { let inputField = <HTMLInputElement>document.querySelector('.dropdown-list:not([hidden]) input'); inputField && !($event.target.tagName == "INPUT") && setTimeout(() => { inputField.focus() }, 0) }
this hack work for me
I have the same issu too,