ng-multiselect-dropdown
ng-multiselect-dropdown copied to clipboard
Add dropdown open event emitter
Is there a way to have something like this.filter.focus()
fire when the dropdown is open and the filter is present?
I would like to .focus()
in the filter field when the dropdown is opened.
I see there is an @Output
for onDropDownClose()
...maybe with a onDropDownOpen()
@Output, that could be achieved.
Then in toggleDropdown()
the true case for this._settings.defaultOpen = !this._settings.defaultOpen;
could fire this.onDropDownOpen.emit()
@andrit Even if we emit event on drop down open, you cannot set focus to filter as filter model is not exposed outside the component.
@NileshPatel17 If you are fine, I am happy to create a PR to set focus to filter if filter exist
@prathap0611 was this accomplished? setting the focus on the search filter when opening dropdown?
@prathap0611 will there be a open dropdown event emitter anytime soon?
@paladin14 , Could you confirm whether this feature is added.
@prathap0611 @NileshPatel17 It would be a great addition to focus on the filter when opening the dropdown