cubiq / iscroll

Smooth scrolling for the web
http://iscrolljs.com
MIT License
12.87k stars 3.8k forks source link

input[type=file] does not work #1104

Open git8023 opened 7 years ago

git8023 commented 7 years ago

I'm found another problem: demos/forms/index.html html <input type="file">

It isn't working, And my temporary solution(In the function handleEvent ): ... case 'click': // Add the two code below var target = e.target; if (/file/i.test(e.target.type)) {return;} if ( !e._constructed ) { //... }

If not, how do it work? Thank you so much.

hasbug commented 7 years ago

case 'click': //add about input file if(e.target.nodeName == 'INPUT' && e.target.type == 'file') { break; }