updated with event.target as told

This commit is contained in:
Your Name
2026-01-26 15:25:28 +05:30
parent c323c01e7b
commit aecc54c9d2
2 changed files with 4 additions and 4 deletions
@@ -79,7 +79,7 @@
id={`key-${index}`}
value={pref.key}
on:input={(e) => {
prefs[index].key = (e.target as HTMLInputElement).value;
prefs[index].key = (e.currentTarget as HTMLInputElement).value;
prefs = [...prefs];
}}
placeholder="Enter key"
@@ -90,7 +90,7 @@
id={`value-${index}`}
value={pref.value}
on:input={(e) => {
prefs[index].value = (e.target as HTMLInputElement).value;
prefs[index].value = (e.currentTarget as HTMLInputElement).value;
prefs = [...prefs];
}}
placeholder="Enter value"
@@ -76,7 +76,7 @@
id={`key-${index}`}
value={pref.key}
on:input={(e) => {
prefs[index].key = (e.target as HTMLInputElement).value;
prefs[index].key = (e.currentTarget as HTMLInputElement).value;
prefs = [...prefs];
}}
placeholder="Enter key"
@@ -87,7 +87,7 @@
id={`value-${index}`}
value={pref.value}
on:input={(e) => {
prefs[index].value = (e.target as HTMLInputElement).value;
prefs[index].value = (e.currentTarget as HTMLInputElement).value;
prefs = [...prefs];
}}
placeholder="Enter value"