Opened 8 years ago

Closed 8 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 8 years ago by ykami

Owner: changed from ykami to Douglas Hays

comment:2 Changed 8 years ago by Douglas Hays

Milestone: tbd1.7
Status: newassigned

comment:3 Changed 8 years ago by Douglas Hays

Resolution: fixed
Status: assignedclosed

(In [25572]) Fixes #13270. Add type:hidden attribute to valueNode INPUT even when name is not specified

Note: See TracTickets for help on using tickets.