Skip to content
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

fix dynamic event handler expression #3934

Conversation

tanhauhau
Copy link
Member

#3836 fixed the case if the event handler is an Identifier expression.

but it doesn't work for cases like

<button on:click={foo ? bar : baz} />

This PR will fix this.

@tanhauhau tanhauhau force-pushed the tanhauhau/dynamic-event-handler-expression branch from 38502a7 to 58b7b5b Compare November 16, 2019 03:52
@Rich-Harris Rich-Harris merged commit 4b5f34e into sveltejs:master Nov 16, 2019
@Rich-Harris
Copy link
Member

nice 👍

@tanhauhau tanhauhau deleted the tanhauhau/dynamic-event-handler-expression branch November 16, 2019 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants