-
Notifications
You must be signed in to change notification settings - Fork 67
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
How to re-init a combotree after destroy it? #31
Comments
Also having the same problem, I have multiple records on my site, i try to reinit ComboTree everytime I click one of them. |
Hi @erhanfirat , Do you have any idea about this? Please help me resolve this issues. |
I have drop-down. Based on drop-down selection,need to change the JSON value for the input combotree. |
I have faced with similar problem and in my case, it comes out there is a bug(?) in destroy method. My specific scenario:
DOM looks like above when comboTree initialized, but in my case there is still Below is how I solved the problem in my specific case
|
I've also run into this problem. It returns "undefined" .. this is when you attempt to reapply a comboTree to an element where its comboTree has been previously destroyed. In the constructor, at end of javascript, it has no test for length = 0, and this leads me to believe that the $.data() wasn't removed. In comboTreePlugin.js:
The line that removes the data is commented out for some reason... |
exactly |
Required change for issue #31 in destroy()
I want re-init a combotree after destroy it. How i do it?
Eg1: init on focus and destroy on blur:
Eg2:
Look forward to your feedback. Thanks!
The text was updated successfully, but these errors were encountered: