paulstraw/FancySelect

Options duplicated when 'enable' is triggered

Opened this issue · 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 dipil-saud@b255310. 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.