Opened 8 years ago

Closed 7 years ago

#18182 closed defect (patchwelcome)

Including SpinWheelDatePicker inside a dojox/simpledialog widget gives error:"Unable to get value of the property 'getMonth': object is null or undefined.

Reported by: frank123 Owned by: Patrick Ruzand
Priority: undecided Milestone: 1.13
Component: DojoX Mobile Version: 1.10.0
Keywords: Cc:
Blocked By: Blocking:


I am getting an error while including SpinWheelDatePicker? widget inside a SimpleDialog? widget. Error: "Unable to get value of the property 'getMonth': object is null or undefined. Enviroment: Dojo Version: 1.9.3 and 1.10.1 Browser : Chrome 36

Attachments (1)

dojo_bug_18182.html (1.0 KB) - added by freddefisk 8 years ago.

Download all attachments as: .zip

Change History (5)

Changed 8 years ago by freddefisk

Attachment: dojo_bug_18182.html added

comment:1 Changed 8 years ago by freddefisk

I was able to reproduce this by simply placing the SpinWheelDatePicker? within a div with display: none, see attached test case.

Did a little digging and it seems like the reason it fails is because SpinWheelSlot?._getValueAttr uses the position of its child elements to determine what value is selected, and it can not do this when they are not visible.

comment:2 Changed 8 years ago by bill

Component: GeneralDojoX Mobile
Owner: set to Patrick Ruzand

comment:3 Changed 7 years ago by helloworld

Same problem for simpleDialog, instead of Opener. With dojo 1.10.3, mac10.10.1, chrome.

comment:4 Changed 7 years ago by dylan

Milestone: tbd1.12
Resolution: patchwelcome
Status: newclosed

Given that no one has shown interest in creating a patch in more than a year, I'm closing this as patchwelcome. Please let us know if you would like to get involved in helping make this change to Dojo!

Note: See TracTickets for help on using tickets.