mirror of https://github.com/sveltejs/svelte
fix: don't throw for `undefined` non delegated event handlers (#15087)
* fix: don't throw for `undefined` non delegated event handlers * chore: update typingspull/15057/head
parent
ee024ffd0e
commit
7da86ef80c
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'svelte': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: don't throw for `undefined` non delegated event handlers
|
@ -0,0 +1,9 @@
|
|||||||
|
import { ok, test } from '../../test';
|
||||||
|
|
||||||
|
export default test({
|
||||||
|
async test({ target }) {
|
||||||
|
const button = target.querySelector('button');
|
||||||
|
ok(button);
|
||||||
|
button.dispatchEvent(new window.MouseEvent('mouseenter'));
|
||||||
|
}
|
||||||
|
});
|
@ -0,0 +1 @@
|
|||||||
|
<button onmouseenter={undefined}></button>
|
Loading…
Reference in new issue