ng-multiselect-dropdown icon indicating copy to clipboard operation
ng-multiselect-dropdown copied to clipboard

Add dropdown open event emitter

Open andrit opened this issue 5 years ago • 5 comments

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 avatar Mar 12 '19 22:03 andrit

@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 avatar Apr 01 '19 15:04 prathap0611

@prathap0611 was this accomplished? setting the focus on the search filter when opening dropdown?

josecastellanos avatar Jul 09 '19 21:07 josecastellanos

@prathap0611 will there be a open dropdown event emitter anytime soon?

paladin14 avatar Mar 11 '21 13:03 paladin14

@paladin14 , Could you confirm whether this feature is added.

Rajsekar89 avatar May 24 '21 12:05 Rajsekar89

@prathap0611 @NileshPatel17 It would be a great addition to focus on the filter when opening the dropdown

oomkoos avatar Dec 03 '21 11:12 oomkoos