#328 closed defect (worksforme)
combobox /javascript error when pushing caret (IE)
Reported by: | bill | Owned by: | anonymous |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Widgets | Version: | 0.2 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Select something from the drop down list, move cursor to the end of the combo box input field, click the arrow to close the select list and then click the arrow again, to open the select list.
On open, there's a javascript error in getCaretPos()/ ntr.setEndPoint("EndToEnd?", tr); because tr is "".
Attachments (1)
Change History (7)
comment:1 Changed 15 years ago by
Summary: | context menu/javascript error when pushing caret (IE) → combobox /javascript error when pushing caret (IE) |
---|
comment:2 Changed 15 years ago by
Milestone: | 0.3release → 0.4 |
---|
Changed 15 years ago by
Attachment: | ComboBox.js added |
---|
comment:3 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
FILE: ComboBox?.js Code changed at line 100 in function getCaretPos. Please verify if I am doing right.
//If (tr.boundingLeft <= ntr.boundingLeft)then most probably //'tr' is not holding what we want.Also since ntr.boundingLeft //remains //fixed returning 0 makes sense. if(tr.boundingLeft <= ntr.boundingLeft) return 0;//line added ntr.setEndPoint("EndToEnd", tr); return String(ntr.text).replace(/ /g,"").length;
comment:4 Changed 15 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
comment:5 Changed 15 years ago by
Resolution: | → worksforme |
---|---|
Status: | reopened → closed |
This is working for me.
Upon selecting something from the drop down list, the select list automatically closes. I move the cursor to the end (past the last letter), and then click the arrow again, to open the select list. It works fine.
Note: See
TracTickets for help on using
tickets.
Added code to fix this ticket