minimalect icon indicating copy to clipboard operation
minimalect copied to clipboard

Re: Issue 45

Open fearghalmurphy opened this issue 11 years ago • 9 comments
trafficstars

In the jsfiddle you made, it seems the populate works fine, though when you try to select something in the second menu, it doesn't hold the value clicked on. Any ideas why this would happen? I'm in Chrome at the moment.

fearghalmurphy avatar Jun 04 '14 16:06 fearghalmurphy

Oh wait.. I think its allowing mutiple selections. Maybe that explains it. Is there a way to disable this?

fearghalmurphy avatar Jun 04 '14 16:06 fearghalmurphy

Multiple selections shouldn't be on for any selects unless the original element has the multiple property. This is a bug; I'll have to do some investigation. Sorry about this!

groenroos avatar Jun 06 '14 05:06 groenroos

@groenroos Any closer on this? I'm getting the same problems now.

peirix avatar Aug 12 '14 13:08 peirix

This bug is a bit of a bummer.

@groenroos Do you know what is causing this problem? Maybe we can help you can tell us where to look.

kulpreet avatar Aug 18 '14 06:08 kulpreet

i'm having the same problem right now! any update on this? thanks

rcstr avatar Sep 08 '14 13:09 rcstr

Would love an update here! :)

pipsmithe avatar Feb 11 '15 13:02 pipsmithe

I've delved into the code, and 'hacked' a solution here...

copied line 108:

this.items = this.wrapper.find('li');

...to line 550, meaning when a selection is made the array of options is refreshed from the dynamically created content, rather than the old array of original options.

Does the trick for me - albeit probably not very efficient. Perhaps @groenroos will have a moment to review and fix properly.

Kind regards,

Tom

pipsmithe avatar Feb 11 '15 14:02 pipsmithe

Ah, better still - inject the following at line 208...

m.items = m.wrapper.find('li');

This performs the update, but only when the DOM changes, and not on every selection change. :)

pipsmithe avatar Feb 11 '15 14:02 pipsmithe

I'm having similar problems, but with the 'update' function. I'm using React to dynamically render select lists, the default mutate doesn't seem to work (because it's not in the DOM) - but the update function does. Any idea how to hack the plugin so that the new options are selectable?

mrchristophy avatar Oct 21 '16 07:10 mrchristophy