Ticket #6299 (closed defect: fixed)

Opened 8 months ago

Last modified 8 months ago

Form: make onSubmit and onReset work like native HTML forms

Reported by: bill Owned by: doughays
Priority: normal Milestone: 1.1
Component: Dijit Version: 1.0
Severity: normal Keywords:
Cc:

Description

As per #6280 and #6292, developers expect onSubmit and onReset to work like native HTML forms where they return true/false to approve/reject the submit/reset operation.

Fix dijit.Form so the developer isn't required to call dojo.stopEvent() to cancel the submit/reset operation.

Attachments

6299.patch (6.4 kB) - added by doughays 8 months ago.
patch for review

Change History

Changed 8 months ago by doughays

patch for review

Changed 8 months ago by bill

(In [13189]) Make comparison of Editor return code ignore irrelevant whitespace. Fixes #6091. Also added reset check, part of patch to #6299 (refs #6299)

Changed 8 months ago by bill

  • status changed from new to closed
  • resolution set to fixed

(In [13191]) Patch from Doug to make onsubmit="return false;" work on dijit.Form (in addition to dojo.stopEvent()), like on native <form> elements. Fixes #6299, refs #6280, #6292.

Note: See TracTickets for help on using tickets.