event.currentTarget undefined after async/await

Viewed 24

So apparently event.currentTarget can become undefined when called after async/await operations such as some image processing performed by my script.

Unfortunately I'm using event.currentTarget=null to "clear" the @change event of a file input field, which uploads images. This makes sure, that the @change event gets triggered, even if the input is identical.

  1. Is there a way to still set event.currentTarget=null even after async operations?
  2. Or is there another way to trigger @change event even if input is identical?
0 Answers
Related