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

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

Open

Description

@herubber

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

Activity

  1. davidnmbond commented on Oct 7, 2019

    @davidnmbond

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

  2. danielabbatt commented on Oct 7, 2019

    @danielabbatt

    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.

  3. davidnmbond commented on Oct 7, 2019

    @davidnmbond

    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;
    
  4. sgbooth commented on Oct 19, 2019

    @sgbooth

    Thanks David. Its not ideal, but it works.

  5. rvdroer commented on Dec 3, 2019

    @rvdroer

    Is there already a real solution for this issue?

  6. BtbN commented on Sep 15, 2020

    @BtbN

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

  7. davidnmbond commented on Sep 16, 2020

    @davidnmbond

    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.

  8. BtbN commented on Sep 16, 2020

    @BtbN

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions