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

Commit b420a13

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

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

packages/api-generator/src/TextField.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,26 @@
404404
"locations": null,
405405
"loc": null,
406406
"visibility": "public",
407+
"description": "Deprecated - Use keyup or keydown instead",
408+
"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",
407427
"description": "",
408428
"keywords": []
409429
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@
101101
on:input
102102
on:change
103103
on:keypress
104+
on:keydown
105+
on:keyup
104106
{...$$restProps} />
105107
</div>
106108

0 commit comments

Comments
 (0)