Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

How can i clear the value of input element? #2

Open
herubber opened this issue Sep 30, 2019 · 8 comments
Open

How can i clear the value of input element? #2

herubber opened this issue Sep 30, 2019 · 8 comments

Comments

@herubber
Copy link

OnChange event has no emitted when I upload a single file again ~!

@davidnmbond
Copy link

We are suffering from the same issue.
When the same file is uploaded, we get no event.
Looking into a fix.

@danielabbatt
Copy link

OnChange event has no emitted when I upload a single file again ~!

We only observed this happening when it was the same file that was dropped as the input had not changed as such.

@davidnmbond
Copy link

davidnmbond commented Oct 7, 2019

EDIT: THE ISSUE IS NOW FIXED AND THE BELOW WORKAROUND SHOULD NOT BE REQUIRED

Mars Attacks Alien: "HACK! HACK-HACK!"

OK, here's a workaround:

@if (DoubleBuffer)
{
	<InputFile OnChange="FileUploaded" />
}
else
{
	<InputFile OnChange="FileUploaded" />
}

and, at the end of FileUploaded():

DoubleBuffer = !DoubleBuffer;

@sgbooth
Copy link

sgbooth commented Oct 19, 2019

Thanks David. Its not ideal, but it works.

@rvdroer
Copy link

rvdroer commented Dec 3, 2019

Is there already a real solution for this issue?

@BtbN
Copy link

BtbN commented Sep 15, 2020

I tried implementing the proposed workaround, with the effect that now two uploads work, but the third one fails.

@davidnmbond
Copy link

I tried implementing the proposed workaround, with the effect that now two uploads work, but the third one fails.

I believe this issue is now fixed and the workaround is no longer required.

@BtbN
Copy link

BtbN commented Sep 16, 2020

The issue is definitely still happening for me on the latest version.

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

6 participants