Open ader1990 opened 12 years ago
have the same error, when use combobox in dialog modal window, any idei?
Hey! You can comment it out. I think that your problem is a little bit bigger: Can you give more details on what you intend to do ?
I do form in modal window(dialog jui, zii.widgets.jui.CJuiDialog) with combobox extension. If i use form(with combobox) without dialog it's work fine, but if with dialog, it's drop error when i open dialog, close dialog and want open again, i mean:
If i refresh page, i can repeat action mentioned above. I can take u my source if u want. I really don't know what's wrong. Can u help me?
P.S. Sorry for my English, i just recently started to study.
2013/4/1 Adrian Vladu notifications@github.com
Hey! You can comment it out. I think that your problem is a little bit bigger: Can you give more details on what you intend to do ?
— Reply to this email directly or view it on GitHubhttps://github.com/digitick/yii-combobox/issues/1#issuecomment-15726902 .
rename "destroy" to "_destroy"
The "destroy" function looks like this:
destroy: function() { this.input.remove(); // this.input doesn't exist this.button.remove(); this.element.show(); $.Widget.prototype.destroy.call(this); }
"this.input" doesn't exist.
This is the full error code, where the 'undefined' is "this.input": Uncaught TypeError: Cannot call method 'remove' of undefined $.widget.destroy b.Widget._createWidget jQuery.event.dispatchjquery.js:3256 jQuery.event.add.elemData.handle.eventHandlejquery.js:2875 jQuery.event.triggerjquery.js:3144 jQuery.fn.extend.triggerHandlerjquery.js:3786 b.cleanData a.cleanData jQuery.fn.extend.emptyjquery.js:5822 _cleanupjquery.fancybox-1.3.4.js:962 jQuery.extend.speed.opt.completejquery.js:8590 jQuery.fx.stepjquery.js:8760 tjquery.js:8660 jQuery.extend.tick