Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

input type=file display:'none' class='needsclick'。input.click() won‘t work #580

Open
USTCLX opened this issue Mar 6, 2019 · 2 comments

Comments

@USTCLX
Copy link

USTCLX commented Mar 6, 2019

I think FastClick.prototyp.onClick method has a bug. The targetElement has not been reassigned to event.target。
I think it should be like this

FastClick.prototype.onClick = function (event) {
	var permitted;
	this.targetElement = event.target;          // here reassign this.targetElement
	if (this.trackingClick) {
		this.targetElement = null;
		this.trackingClick = false;
		return true;
	}
         ....
 }
@spreadzz
Copy link

This is a serious issue, I am experiencing it too. When will it be fixed?

Setting the class "needsclick" on the input[type="file"] does not work.

@snnairow
Copy link

我也遇到了

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants