Closed coxm closed 3 years ago
The trick was that the onEnd()
callback is only triggered after a drag'n'drop ends, which is why input changes were not detected. I was confused reading the code as well :,-) I refactored the code a bit to make it more reactive-like.
Thanks for the code!
In passing I've been eyeing https://github.com/alpinejs/alpine as an alternative to our aging jQuery components. Seems like a good way to have reactive components directly built into the templates.
This should solve 90% of #257.
@mkalam-alami I'm struggling to make the warning disappear when somebody has added a URL to their page. I think there's something I'm not quite understanding about how the link elements are created, or maybe I'm just trying to attach a listener in the wrong place. Any suggestions would be very welcome :)