alakajam-team / alakajam

Website powering the Alakajam! game making community
https://alakajam.com/
Other
29 stars 13 forks source link

[WIP] Fix/257 nudge people add links platforms #621

Closed coxm closed 3 years ago

coxm commented 3 years ago

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 :)

mkalam-alami commented 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!

mkalam-alami commented 3 years ago

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.