Disable dropdown close of multiselect on click of a field inside multiselect dropdown in PrimeNG

北战南征 提交于 2021-02-16 18:54:25

问题


I am working on a requirement in which I am using PrimeNG multiselect. This multiselect has checkboxes followed by some text and logo. On click of logo I am displaying some data in popup. On click of the ok button of popup the background multiselect closes, where in I need to disable closing of popup on click of logo. Heere is the stackblitz example for reference: Stackblitz Demo click here.

Step 1: Open mutiselect and click on logo

Step 2: Click ok of popup

Step 3: Multiselect Dropdwon closes


回答1:


Adding StackBlitz Solution.


Achieved this using onPanelHide eventEmitter which calls checkState there I am keeping panel opened with
this.multiInput.show();
If popup is opened.



来源:https://stackoverflow.com/questions/65284562/disable-dropdown-close-of-multiselect-on-click-of-a-field-inside-multiselect-dro

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!