Opened 12 years ago
Last modified 4 years ago
#9075 assigned enhancement
BusyButton with type=submit doesn't submit form in IE
Reported by: | coldwind | Owned by: | Kitson Kelly |
---|---|---|---|
Priority: | high | Milestone: | 1.15 |
Component: | DojoX Form | Version: | 1.3.0 |
Keywords: | dojox.form.BusyButton | Cc: | |
Blocked By: | Blocking: |
Description
It's because of disabling button in makeBusy method what preventing from submitting form.
May be it will be helpful to add property which will prevent from disabling button (and user will have to disable it in onsubmit event)?
Change History (10)
comment:1 Changed 12 years ago by
Owner: | changed from dante to nonken |
---|
comment:2 Changed 11 years ago by
Milestone: | tbd → 1.5 |
---|
comment:3 Changed 11 years ago by
Milestone: | 1.5 → 1.6 |
---|
comment:4 Changed 10 years ago by
Milestone: | 1.6 → future |
---|
comment:5 Changed 8 years ago by
Owner: | changed from nonken to Kitson Kelly |
---|---|
Status: | new → assigned |
comment:6 Changed 8 years ago by
Same behavior on Chrome 25 with same cause. Simply replacing this.set("disabled", true)
by window.setTimeout(dojo.hitch(this, "set", "disabled", true), 0);
works perfectly.
comment:7 Changed 8 years ago by
After some testing, I realized the above fix disables the button if the cancel call is made following the makeBusy one (eg. no XHR between them). So you need to alter it to something like
window.setTimeout(dojo.hitch(this, function() { this.set("disabled", this.isBusy); }), 0);
This should do the trick.
comment:9 Changed 5 years ago by
Milestone: | future → 1.12 |
---|
This needs a patch with a pull request per our contribution guidelines ( https://github.com/dojo/dojo/blob/master/CONTRIBUTING.md ) if progress is going to be made on it. I don't think setTimeout is the right answer to solving the problem though.
comment:10 Changed 4 years ago by
Milestone: | 1.13 → 1.15 |
---|
Ticket planning... move current 1.13 tickets out to 1.15 to make it easier to move tickets into the 1.13 milestone.
(sadly) punting seemingly abandoned ticket and meta tickets to future