ng-multiselect-dropdown
ng-multiselect-dropdown copied to clipboard
After selecting a checkbox, clicking search input closes dropdown
Angular version: 9.1
ng-multiselect-dropdown version:
0.3.0
Description of issue: Opening the dropdown and clicking search input behaves as expected. Opening the dropdown, selecting a checkbox and then clicking on search inputs closes the dropdown.
Steps to reproduce:
- Open dropdown
- Select a checkbox
- Click 'search' placeholder text
- Search input not selected and dropdown closes
Expected result: Checkboxes can be selected and then search feature used.
Actual result: Search can only be used before checkboxes selected.
Demo: I'm seeing this on the first example on this page: [https://nileshpatel17.github.io/ng-multiselect-dropdown/](https://nileshpatel17.github.io/ng-multiselect-dropdown/
Can reproduce on latest chrome, brave and firefox (mac) and brave and firefox on windows 10.
Not sure if related but it seems like it might be... If you open the dropdown, then click some checkboxes, then click the dropdown button again, it used to close the dropdown but now it closes it then quickly reopens it.
Bug still exists in latest version.
Is there a workaround for this?
My workaround is to pin my package.json the old version I was using before I updated to the broken version. Not ideal but better than this new bug.
Hi, Is there any fix planned for this issue? Thanks for info.
I've also found this issue, I wonder if there is a solution that doesn't involve downgrading the package version
I am having this issue as well. What package version does not have this issue?
Is there a workaround for this?
Below is a duct tape and it works.
1.
@ViewChild(MultiSelectComponent, { static: true }) multiSelectComponent: MultiSelectComponent;
2.
ngAfterViewInit( ) {
this.multiSelectComponent.registerOnTouched(this.onCtrlBlur);
}
onCtrlBlur( ) {
const ctrl = <MultiSelectComponent>(<unknown>this);
ctrl._settings.defaultOpen = true;
}
@YHGxG Thanks, this worked
I am having this issue as well. What package version does not have this issue?
0.2.10
Is there a workaround for this?
Below is a duct tape and it works. 1.
@ViewChild(MultiSelectComponent, { static: true }) multiSelectComponent: MultiSelectComponent;
2.ngAfterViewInit( ) { this.multiSelectComponent.registerOnTouched(this.onCtrlBlur); }
onCtrlBlur( ) { const ctrl = <MultiSelectComponent>(<unknown>this); ctrl._settings.defaultOpen = true; }
its not working for me. In place of 'unknown', do I need to mention anything else?
Looks like this has been fixed by this PR https://github.com/NileshPatel17/ng-multiselect-dropdown/pull/322 which was included in the 0.3.8 release.
My very quick initial test indicates that it's fixed but I haven't done thorough testing yet.