Opened 5 years ago

Closed 3 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 5 years ago by bill

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.

comment:2 Changed 5 years ago by bill

Component: GeneralEvents
Owner: set to Kris Zyp

comment:3 Changed 3 years ago by dylan

Milestone: tbd1.12
Resolution: patchwelcome
Status: newclosed

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!

Note: See TracTickets for help on using tickets.