Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem adding dynamic select lists #1618

Closed
jots opened this issue Jun 28, 2015 · 9 comments
Closed

problem adding dynamic select lists #1618

jots opened this issue Jun 28, 2015 · 9 comments

Comments

@jots
Copy link

jots commented Jun 28, 2015

I am cloning a table row that contains select lists. after I append it, the select list is disabled.
if I add: $('select').material_select(); after appending it, it creates a duplicate select list which works, but leaves the select list that doesn't work.

uncomment out the $('select').material_select(); in:
http://jsbin.com/hutuzagaqu/edit?html,js,output

to see what I mean.

@rexopl
Copy link

rexopl commented Jun 29, 2015

Hello, yeah there are some problems with selects. I even do material_select('destroy') and then create new one material_select() but it seems that after destroy some code left: "".
After few destroy, create i have many carets above my select.

@smark91
Copy link

smark91 commented Jun 29, 2015

same here.
In my case i have a dropdown coded on a page. in some case i need to disable it and need to reload with material_select() for really disable it. Until version 0.96.1 all works. with 0.97 a ▼ appears for every time the function is call.

@Stroncickiy
Copy link

i have same problem

@kai23
Copy link

kai23 commented Jul 1, 2015

+1

@smark91
Copy link

smark91 commented Jul 2, 2015

find a fix.
already pull request.

#1656

@carlosperate
Copy link

If this issue is only regarding the left over caret, it has already been fixed. You can get the latest built version from the bin folder.
Original issue: #1570
Commit: cbcf4c8

@acburst
Copy link
Collaborator

acburst commented Jul 3, 2015

The caret bug has been fixed already. I think the problem lies with you cloning the select after you've initialized it with our plugin. Initializing it with our plugin is what creates the structure so if you clone an already initialized select it will duplicate the structure. Try instead of cloning it, creating it from scratch or some different way of cloning .

@acburst acburst closed this as completed Jul 3, 2015
@rexopl
Copy link

rexopl commented Jul 15, 2015

The problem still occurs on master version.

@sheki
Copy link

sheki commented Dec 1, 2015

I think this exists and is a big issue for react.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants