mirror of https://github.com/sveltejs/svelte
parent
ede5dab230
commit
ef158ff729
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: apply event attribute validation to elements only
|
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"message": "Event attribute must be a JavaScript expression, not a string",
|
||||
"code": "invalid-event-attribute-value",
|
||||
"start": {
|
||||
"line": 4,
|
||||
"column": 8
|
||||
},
|
||||
"end": {
|
||||
"line": 4,
|
||||
"column": 21
|
||||
}
|
||||
}
|
||||
]
|
@ -0,0 +1,4 @@
|
||||
<button onclick={() => {}}>ok</button>
|
||||
<Button onclick onbar="bar">ok</Button>
|
||||
|
||||
<button onclick="foo">not ok</button>
|
Loading…
Reference in new issue