Skip to content

Commit fe272d5

Browse files
authored
Rename ondoubleclick to ondblclick to match the MDN ref and not React. (#359)
https://developer.mozilla.org/en-US/docs/Web/API/Element/dblclick_event #357
1 parent 0296cac commit fe272d5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/svelte2tsx/src/knownevents.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ export default [
9595
'onclickcapture',
9696
'oncontextmenu',
9797
'oncontextmenucapture',
98-
'ondoubleclick',
99-
'ondoubleclickcapture',
98+
'ondblclick',
99+
'ondblclickcapture',
100100
'ondrag',
101101
'ondragcapture',
102102
'ondragend',

packages/svelte2tsx/svelte-jsx.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1903,8 +1903,8 @@
19031903
onclickcapture?: MouseEventHandler<T>;
19041904
oncontextmenu?: MouseEventHandler<T>;
19051905
oncontextmenucapture?: MouseEventHandler<T>;
1906-
ondoubleclick?: MouseEventHandler<T>;
1907-
ondoubleclickcapture?: MouseEventHandler<T>;
1906+
ondblclick?: MouseEventHandler<T>;
1907+
ondblclickcapture?: MouseEventHandler<T>;
19081908
ondrag?: DragEventHandler<T>;
19091909
ondragcapture?: DragEventHandler<T>;
19101910
ondragend?: DragEventHandler<T>;

0 commit comments

Comments
 (0)