Skip to content

Conversation

@Diesnei
Copy link

@Diesnei Diesnei commented Sep 10, 2024

Add a "click" event to each "imageEl" that when triggered:

  1. Update the state of the container to "empty"
  2. Remove the current image picture (to avoid duplications)
  3. Calls the file selection method "onSelectFile()"

This way, the "fillImage" method will be called again after "onSelectFile" is fired.

Of course I would like to make it customizable to also work in "read only" scenarios and so on. But I'm not sure how to do it, sorry.

That's my first open source pull request though, i really hope it helps.
Thanks for the amazing package <3.

… "onSelectFile" method to allow image replacement.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant