Opened 10 years ago
Closed 10 years ago
#13270 closed defect (fixed)
Slider requires 'name' attribute - without it, renders incorrectly
Reported by: | Javier Pedemonte | Owned by: | Douglas Hays |
---|---|---|---|
Priority: | high | Milestone: | 1.7 |
Component: | DojoX Mobile | Version: | 1.7.0b1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
The dojox.mobile.Slider widget requires the name
attribute. Without that, it renders incorrectly, showing the input field (which should be hidden).
The culprit is this line in Slider.js:
this.valueNode = dojo.create("input", (this.srcNodeRef && this.srcNodeRef.name) ? { type: "hidden", name: this.srcNodeRef.name } : {}, this.domNode, "last");
It creates an input
element, but only sets it to hidden
if there is a name
attribute. Not sure what the intent was here, or why name
would be required for this widget.
Change History (3)
comment:1 Changed 10 years ago by
Owner: | changed from ykami to Douglas Hays |
---|
comment:2 Changed 10 years ago by
Milestone: | tbd → 1.7 |
---|---|
Status: | new → assigned |
comment:3 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
(In [25572]) Fixes #13270. Add type:hidden attribute to valueNode INPUT even when name is not specified