nathanfaucett / svelte-slate

slate svelte view layer
https://nathanfaucett.github.io/svelte-slate/
Apache License 2.0
61 stars 5 forks source link

Do not dispatch value change even on selection only changes. #8

Closed twig1337 closed 1 year ago

twig1337 commented 1 year ago

I was getting a ton of "value" events when it was only the selection being modified. This corrects that behavior. There's still a duplicate "value" event being dispatched but that's a separate issue so I didn't address it here.

This fix was copied directly from Slates doc pages here