Skip to content
This repository was archived by the owner on Sep 26, 2022. It is now read-only.

Commit 7b5075d

Browse files
refactor: remove deprecated event keypress from TextField
1 parent f72f9d6 commit 7b5075d

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

packages/api-generator/src/TextField.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,26 @@
406406
"visibility": "public",
407407
"description": "",
408408
"keywords": []
409+
},
410+
{
411+
"name": "keyup",
412+
"parent": "input",
413+
"modificators": [],
414+
"locations": null,
415+
"loc": null,
416+
"visibility": "public",
417+
"description": "",
418+
"keywords": []
419+
},
420+
{
421+
"name": "keydown",
422+
"parent": "input",
423+
"modificators": [],
424+
"locations": null,
425+
"loc": null,
426+
"visibility": "public",
427+
"description": "",
428+
"keywords": []
409429
}
410430
],
411431
"slots": [

packages/svelte-materialify/src/components/TextField/TextField.svelte

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
<slot />
8787
</label>
8888
<slot name="content" />
89+
<!-- keypress Evemt is deprecated. Use keydown or keyup instead -->
8990
<input
9091
type="text"
9192
bind:value
@@ -101,6 +102,8 @@
101102
on:input
102103
on:change
103104
on:keypress
105+
on:keydown
106+
on:keyup
104107
{...$$restProps} />
105108
</div>
106109

0 commit comments

Comments
 (0)