-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
handleEvent for the win :) #126
Comments
Am I right that the only change for this to work would be a change to the Typescript definition of |
@johan-gorter Thanks for your fast feedback! |
Hmm, this would mean that the click handler should execute, only the |
Stumbled upon this issue today and decided to give it a go. After working on it a bit, I don't think this is possible without making significant accommodations in Maquette. This is due to the difference between adding an event listener with If you take a look at this codepen you can see the difference plainly. If we wanted to make this work, Maquette would need to adjust all implementations of But, both of those approaches seem like unnecessary complexity, especially with Maquette's goal to be as small/lightweight as possible. |
Hi @CitrusFruits |
Hey dear friends!
Do you know about this? https://www.thecssninja.com/javascript/handleevent
I think it would be a nice addition if your eventhandling would accept objects like in vanilla js!
No bind is required when you use vanilla
htmlButton.addEventListener('click', app)
!Thanks for your feedback in advance!
The text was updated successfully, but these errors were encountered: