Skip to content

Conversation

@EmilTholin
Copy link
Member

@EmilTholin EmilTholin commented May 2, 2019

Adding alert, confirm, and prompt to globals makes is so Svelte doesn't warn when using it in an inlined event handler.

Closes #2648

@creaven
Copy link

creaven commented May 2, 2019

what about prompt and confirm?

@EmilTholin
Copy link
Member Author

You're right, those should most likely be added as well. Do you mind if I extend the issue and this PR to include those?

@creaven
Copy link

creaven commented May 2, 2019

I think make sense to add it in one PR

@EmilTholin EmilTholin changed the title Add alert to globals Add alert, confirm, and prompt to globals May 2, 2019
@Rich-Harris Rich-Harris merged commit 7b99299 into sveltejs:master May 4, 2019
@Rich-Harris
Copy link
Member

much better, thanks

@EmilTholin EmilTholin deleted the alert-global branch May 4, 2019 09:56
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.

Using alert, prompt or confirm in an inlined event handler gives warning

3 participants