Skip to content

Commit

Permalink
fix name settings not working on ios
Browse files Browse the repository at this point in the history
  • Loading branch information
pyj-pd committed Nov 12, 2024
1 parent dc7f564 commit 0b6190c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/picker/sections/NameSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ const { setCurrentSectionId } = useSectionNavigation()
*/
const validateTextarea = (event: Event) => {
const target = event.target as HTMLTextAreaElement
const lineSplit: string[] = target.value.split(NAME_LINE_BREAK)
// If line exceeds total seat number, don't.
Expand All @@ -39,7 +38,10 @@ const validateTextarea = (event: Event) => {
}
}
const updateNameData = (event: Event) => setNameData((event.target as HTMLInputElement).value)
const updateNameData = (event: Event) => {
validateTextarea(event)
setNameData((event.target as HTMLInputElement).value)
}
</script>

<template>
Expand Down

0 comments on commit 0b6190c

Please sign in to comment.