#1984 closed defect (fixed)
repeatedly selecting options from ComboBox popupwidget causes errors (IE only)
Reported by: | Owned by: | bill | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Widgets | Version: | 0.4 |
Keywords: | ComboBox | Cc: | |
Blocked By: | Blocking: |
Description
If i get repeatedly selecting differnt results from a the Combobox popup widget causes javascript errors in Internet Explorer. Tested against testswidget est_ComboBox.html
Change History (10)
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
Note: in all cases i'm using the arrow Image to get to open the popup
comment:3 Changed 14 years ago by
Ok it seems all previous errors were caused by the 800a025e error which occurs inside the selectOption method (sorry i haven't been more deterministic).
comment:4 Changed 14 years ago by
If i continously select items from the popupWidget in the comboBox i get this error (note this only seems to happen if i select multiple times from differnt comboboxs on the same page: I've narrowed this down to this method: _hideResultList: function(){
try{
this.popupWidget.close();
}catch(e){dojo.debugShallow(e);}
},
Yields: DEBUG: ------------------------------------------------------------ DEBUG: Object: [object Error] DEBUG: description: Could not complete the operation due to error 800a025e. DEBUG: message: Could not complete the operation due to error 800a025e. DEBUG: name: Error DEBUG: number: -2146827682 DEBUG: ------------------------------------------------------------
comment:5 Changed 14 years ago by
I also saw some odd behavior with combo boxes and IE 6.0. Not sure if it's related to this ticket, but when I select the last item in a select box, then select any other item in the box, I get the JavaScript? error "Unexpected call to method or property access." Tested with test_Select.html and IE 6.0. Firefox seems to work fine.
Keith
comment:6 Changed 14 years ago by
Milestone: | → 0.4.1 |
---|
This reproduces for me, although you have to select popup values 10 or 20 times. Still, it's a bad bug (especially since it happen's on IE, the world's most used browser)
comment:7 Changed 14 years ago by
This fix seems to solve it for me:
http://trac.dojotoolkit.org/ticket/2070
The error occurs on Firefox as well & other browsers, only IE blocks
comment:8 Changed 14 years ago by
Status: | new → assigned |
---|
That doesn't fix it for me. I've traced the problem down to code in popupContainer (used for the drop down list) that calls moveBookmark to restore selected text. It's related to the text (or part of the text) in the Combobox's <input> field being highlighted. For some reason occasionally that moveBookmark() call gets an internal error. I'll squelch the error.
comment:9 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
I've tried to exhibit this behavior a second time cannot seem to -- I assume it's a pebkac issue. I'll append more as i get it...
I do get other different bizarre behaviour though:
ComboBox?>>_onMouseOut:function(/*Event*/ evt) sometimes the relTarget.parentNode is null.
Putting a try/catch block and debugShallow on the exception in selectOption function yealds this: DEBUG: ------------------------------------------------------------ DEBUG: Object: [object Error] DEBUG: description: Could not complete the operation due to error 800a025e. DEBUG: message: Could not complete the operation due to error 800a025e. DEBUG: name: Error DEBUG: number: -2146827682 DEBUG: ------------------------------------------------------------