Skip to content
Discussion options

You must be logged in to vote

It's because jquery events are not standard ones, they are just a jQuery implementation to imitate the native event system. Alpine just use standard listeners under the hood (the one you could create with document.addEventListener).
Usually the options are:

  1. you find a vanilla js version of that plugin
  2. the jquery plugin offers hooks where you can dispatch standard events
  3. you write something custom (like you did)

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@SimoTod
Comment options

SimoTod Sep 14, 2021
Collaborator

@MartinMystikJonas
Comment options

@MartinMystikJonas
Comment options

@SimoTod
Comment options

SimoTod Sep 14, 2021
Collaborator

@MartinMystikJonas
Comment options

Answer selected by MartinMystikJonas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants