#17872 closed defect (invalid)
DateTextBox control throws 'Out of stack space' error in IE10
Reported by: | karthikeyani | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | 1.10 |
Component: | Dijit - Form | Version: | 1.9.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
I have created two DateTextBox? controls programmatically inside a dialog window. When i open the calender control for the first datetextbox control, there is no issues. But when i click the second datetextbox control to open it shows 'Out of stack space' error.
Error at 'DateTimeTextBox?.js, line 239 character 4'
These controls working well in Chrome and Firefox browsers.
Following is my code sample:
var dialog = new Dialog({ id: "formDialog", title: "", draggable: false, "class" : "claro reports-dialog" }); var div = dojo.create('div', { id: "reports-dialog-actionbutton" }, dialog.containerNode); dojo.style(dojo.byId(div)); var reportContainer = new TableContainer({ cols: 1, customClass: "labelsAndValues", "labelWidth": "100" }, dojo.byId("divForm")); var startDateTextBox = new DateTextBox({ label: "Start Date :", id: "txtStartDate", name: "startDate", inputRequired: true, value: new Date(), dropDownPosition: ["above"] } ); var endDateTextBox = new DateTextBox({ label: "End Date :", id: "txtEndDate", name: "endDate", inputRequired: true, value: new Date(), dropDownPosition: ["above"] } ); reportContainer.addChild(endDateTextBox); reportContainer.addChild(startDateTextBox); reportContainer.startup(); dialog.show();
Change History (4)
comment:1 Changed 8 years ago by
Milestone: | tbd → 1.10 |
---|---|
Resolution: | → invalid |
Status: | new → closed |
comment:2 Changed 8 years ago by
I have used Dojo version 1.9.1 Can you please check with that version?
comment:3 Changed 8 years ago by
I updated Dylan's test case to run again 1.9.1 (just find-and-replace 1.9.3 with 1.9.1) and I don't see an error in IE10.
comment:4 Changed 8 years ago by
I have opened the popup window using click event attached for a div in run-time. I missed to add the event.preventDefault() for the attached click event method. After i added, it is working well. Thanks for your immediate support.
I've cleaned up your test case, and do not see an error:
http://jsfiddle.net/dylan/3R5Bj/