Skip to content

Conversation

ZNick1982
Copy link
Contributor

This PR fixes the order of the events.
The onUploadComplete event appears prior to onChange in case of enabling a Crop or other effects.

How to reproduce:

  1. Set up the widget with crop
  2. Subscribe to events
  3. Upload file and apply the crop
  4. Event onUploadComplete will be called first. The onChange will be after.

@jeetiss
Copy link
Contributor

jeetiss commented Oct 1, 2019

@ZNick1982, woow, first PR with vanilla js 👍🏻
Thanks, I will test and merge it later this week

@jeetiss
Copy link
Contributor

jeetiss commented Oct 9, 2019

Hello @ZNick1982, I was able to reproduce problem with events order.

But seems you fix helps only for first upload, on second event onUploadComplete will be called first again

Need some time to going deeper with this problem 🙌🏻

Снимок экрана 2019-10-09 в 21 29 56

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

Successfully merging this pull request may close these issues.

2 participants