Ticket #7797 (closed defect: fixed)
IE: with _onDayClick in dijit._Calendar
| Reported by: | datasage | Owned by: | peller |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.3 |
| Component: | Dijit | Version: | 1.2beta |
| Severity: | normal | Keywords: | |
| Cc: |
Description (last modified by bill) (diff)
While trying to track down a diffrent IE6 error with the DateTimeTextBox, I found an issue with the event handling for the onDayClick function.
In IE6, if you click on a day, hold down the mouse button and drag the mouse to another day before releasing the button, an error will be generated in this function:
_onDayClick: function(/*Event*/evt){
var node = evt.target;
dojo.stopEvent(evt);
while(!node.dijitDateValue){
node = node.parentNode;
}
if(!dojo.hasClass(node, "dijitCalendarDisabledDate")){
this.attr('value', node.dijitDateValue);
this.onValueSelected(this.value);
}
},
Essentially, with that action, the event object does not have a target member.
Steps to reproduce:
- In IE6 go to the test page: http://download.dojotoolkit.org/current-dev/dojo-release-1.2.0/dijit/tests/form/test_DateTextBox.html
- Click on any DateTimeTextBox to open the calendar.
- Click on a day, and hold down the mouse button.
- Move the mouse to another day, and release.
- You will see an error message.
I tested in IE6 and FF3. Only IE6 would produce the error.
Change History
Note: See
TracTickets for help on using
tickets.