Opened 11 years ago

Closed 7 years ago

#12958 closed defect (patchwelcome)

dojox.form.FileInput + does not work with Google Chrome

Reported by: Matias Rask Owned by: dante
Priority: blocker Milestone: 1.13
Component: DojoX Form Version: 1.6.1
Keywords: Cc:
Blocked By: Blocking:


dojox.form.FileInput? within a form using Google Chrome (v. 11.0.696.68) does not work. It results in _base/Deferred.js:213 TypeError?: Cannot read property 'value' of undefined

With Firefox 4 it works as expected.

<input type="file" id="fooID" name="fooName" label="Browse" regExp=".*.csv" dojoType="dojox.form.FileInput" required="true" />

Any ideas why this might happen?

ps. The fake input gets C:\fakepath\[file] as value in Chrome whereas in Firefox it gets the [file] as value.

<input class="dijitFileInputVisible" type="text" dojoattachpoint="focusNode, inputNode" id="fooID" tabindex="0" aria-disabled="false">

Change History (3)

comment:1 Changed 11 years ago by Matias Rask

Correction to above:

This happened in Chrome when I disabled all the form dijit elements using the following code outside the xhr call:

dojo.forEach( this._form.getChildren(), function( childWidget ) {
	childWidget.set( 'disabled', true );
} );

by adding the disable function to happen after the xhr request returns then there's no such problem.

comment:2 Changed 10 years ago by Colin Snover

Priority: highblocker

Bulk update of open ticket priorities.

comment:3 Changed 7 years ago by dylan

Milestone: tbd1.12
Resolution: patchwelcome
Status: newclosed

Unfortunately still an issue. Given the lack of interest over the past 7 years, I'm closing it as patchwelcome. If there's interest in revisiting this please re-open with a pull request per our contribution guidelines ( ).

Note: See TracTickets for help on using tickets.