multiple-select icon indicating copy to clipboard operation
multiple-select copied to clipboard

Select element is missing within multiple-select events

Open vivekapex opened this issue 5 years ago • 1 comments

Select element instance is not accessible from within majority of the events. This is giving a hard time when I want to apply logic on the select element itself.

Note that when a page has only one or two select elements it's manageable but when you don't know how many such selects are gonna be in one page (in my case each report structure in my reporting engine has it's own number of selects e.g. 10, 13, 9, 5, etc), it becomes a nightmare to manage.

Any suggestions or ideas would really be appreciated. Thanks.

vivekapex avatar Sep 09 '20 13:09 vivekapex

I have the same issue. I think that passing "this" as argument when an event function is called could solve the problem.

es. change this.options.onOpen() with this.options.onOpen(this) here https://github.com/wenzhixin/multiple-select/blob/7ea08b0176a84f95183d281aa96692f49fd434b4/src/MultipleSelect.js#L658

NicholasAntidormi avatar Sep 21 '20 16:09 NicholasAntidormi