Opened 14 years ago

Closed 13 years ago

Last modified 10 years ago

#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)

ComboBox.js (12.3 KB) - added by ashish_patil0@… 13 years ago.
Added code to fix this ticket

Download all attachments as: .zip

Change History (7)

comment:1 Changed 14 years ago by bill

Summary: context menu/javascript error when pushing caret (IE)combobox /javascript error when pushing caret (IE)

comment:2 Changed 13 years ago by anonymous

Milestone: 0.3release0.4

Changed 13 years ago by ashish_patil0@…

Attachment: ComboBox.js added

Added code to fix this ticket

comment:3 Changed 13 years ago by ashish_patil0@…

Resolution: fixed
Status: newclosed

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 13 years ago by bill

Resolution: fixed
Status: closedreopened

comment:5 Changed 13 years ago by bill

Resolution: worksforme
Status: reopenedclosed

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.

comment:6 Changed 12 years ago by (none)

Milestone: 0.4

Milestone 0.4 deleted

Note: See TracTickets for help on using tickets.