Opened 7 years ago
Closed 5 years ago
#18208 closed defect (patchwelcome)
dojox/mobile/common and input type="file" causes multiple file chooser dialogs in IE10+
Reported by: | Justin Doherty | Owned by: | Kris Zyp |
---|---|---|---|
Priority: | undecided | Milestone: | 1.13 |
Component: | Events | Version: | 1.10.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
There is an issue with input fields of type "file" in IE10+ when dojox/mobile/common is required in our application.
We are seeing 2 sequential file chooser dialogs being shown. As soon as a file is chosen in the first one a second one is immediately presented.
This seems to be an issue with dojox/mobile/common setting win.doc.dojoClick to true and dojo/touch creating synthetic click events.
You can see the behaviour in IE10+ on dojox/form/tests/test_FileInput.html if you add the following line to the test page and click choose a file in the standard file input:
dojo.require("dojox.mobile.common");
or simply by adding:
document.dojoClick = true;
Change History (3)
comment:1 Changed 6 years ago by
comment:2 Changed 6 years ago by
Component: | General → Events |
---|---|
Owner: | set to Kris Zyp |
comment:3 Changed 5 years ago by
Milestone: | tbd → 1.12 |
---|---|
Resolution: | → patchwelcome |
Status: | new → closed |
Given that no one has shown interest in creating a patch in more than a year, I'm closing this as patchwelcome. Please let us know if you would like to get involved in helping make this change to Dojo!
That's weird, I wouldn't expect the synthetic click event to open the input type=file... IIRC for security reasons browsers don't allow that type of thing. It's also weird because when dojo/touch emits a synthetic click event it cancels the real click event.