Opened 5 years ago

Closed 3 years ago

Last modified 3 years ago

#17873 closed defect (fixed)

dojox/mobile/Switch does not set value of corresponding hidden input

Reported by: George Sexton Owned by: Youcef Mammar
Priority: high Milestone: 1.11
Component: DojoX Mobile Version: 1.9.3
Keywords: Cc:
Blocked By: Blocking:

Description

dojox/mobile/Switch creates a corresponding hidden input to catch the value of the switch.

However, the code that creates the hidden input does not set the value attribute of the created element.

Look around line 91 in dojox/mobile/Switch.js

So, say you have a form that uses a switch, it's sent to the browser as checked/on, but if the element is not toggled, the value of "on" is not sent back to the server.

Change History (6)

comment:1 Changed 4 years ago by cjolif

Owner: set to Youcef Mammar
Status: newassigned

comment:2 Changed 4 years ago by dylan

Milestone: tbd1.11
Priority: undecidedhigh

comment:3 Changed 4 years ago by Nebulae

Fixed, PR #197

-	+	'<input type="hidden"'+nameAttr+'></div>'
+	+	'<input type="hidden"'+nameAttr+' value="'+this.value+'"></div>'

comment:5 Changed 3 years ago by Patrick Ruzand <pruzand@…>

Resolution: fixed
Status: assignedclosed

In fe1b49ae9b62eb79ccc744fe39b6e97bab3cdac8/dojox:

Error: Processor CommitTicketReference failed
Unsupported version control system "git": Can't find an appropriate component, maybe the corresponding plugin was not enabled? 

comment:6 Changed 3 years ago by Patrick Ruzand <pruzand@…>

In 6e8123fdf58340e6fe5bffd8d3f6244e431a4e7d/dojox:

Error: Processor CommitTicketReference failed
Unsupported version control system "git": Can't find an appropriate component, maybe the corresponding plugin was not enabled? 
Note: See TracTickets for help on using tickets.