Opened 15 years ago

Closed 15 years ago

#2259 closed defect (fixed)

Programmatically created DropdownDatePicker broken

Reported by: guest Owned by: tk
Priority: high Milestone: 0.9
Component: Dijit Version: 0.4.1
Keywords: Cc:
Blocked By: Blocking:


DropdownDatePicker? in latest trunk is broken if the widget is being created programmatically: The pulldown datepicker will be displayed on initialization and not - as in 4.0 - when the user clicks on the dropdown icon. Furthermore, by clicking twice on the dropdown icon, the datepicker disappears and shows again, but days won't be selectable any more.

Really basic test page (adjust dojo path):

<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<script type="text/javascript">
var djConfig = {isDebug: false};
<script type="text/javascript" src"/packages/dojo/dojo.js" ></script>
<script language="JavaScript" type="text/javascript">
<div id="date_node"></div>
<script type="text/javascript">
var from_wgt = dojo.widget.createWidget(
{widgetId: 'date_wgt', date: "" },
dojo.byId( 'date_node')

Change History (3)

comment:1 Changed 15 years ago by dylan

Milestone: 0.4.2
Owner: changed from bill to tk

comment:2 Changed 15 years ago by alex


comment:3 Changed 15 years ago by Adam Peller

Component: WidgetsDijit
Resolution: fixed
Status: newclosed

test_validate programmically creates a DateTextbox?, which is the successor to DropdownDatePicker?, and all seems to work. Lots has been rewritten since 0.4.

Note: See TracTickets for help on using tickets.