Replace onChange with onInput

This commit is contained in:
jude
2023-11-04 23:05:44 +00:00
parent 362b836dc6
commit b7d5d7d32c
14 changed files with 268 additions and 225 deletions

View File

@ -1,4 +1,4 @@
export const Title = ({ title, onChange }) => (
export const Title = ({ title, onInput }) => (
<>
<label class="is-sr-only" for="embedTitle">
Embed Title
@ -10,8 +10,8 @@ export const Title = ({ title, onChange }) => (
rows={1}
name="embed_title"
value={title}
onChange={(ev) => {
onChange(ev.currentTarget.value);
onInput={(ev) => {
onInput(ev.currentTarget.value);
}}
></textarea>
</>