FancySelect icon indicating copy to clipboard operation
FancySelect copied to clipboard

Options duplicated when 'enable' is triggered

Open dipil-saud opened this issue 12 years ago • 0 comments

When I 'enable' the fancyselect, it copies the select options to the fancyselect list, so I end up with multiple duplicates of the initial set of options. You can check it out at http://jsbin.com/biyeyowu/3/watch?html,js,output

I have fixed this for my purpose with https://github.com/dipil-saud/FancySelect/commit/b25531062a624ab8184a6cf5818f40c11897f027. You can check that out at this http://jsbin.com/tagozuci/1/watch?html,js,output

I am not sure if you have the copyOptionsToList() call there for some other purpose. If my change does not break other functionality, I can send a pull request for it.

dipil-saud avatar Mar 12 '14 11:03 dipil-saud