Signed-off-by: Pranav C <pranavxc@gmail.com>
@ -21,7 +21,7 @@ const vModel = useVModel(props, 'modelValue', emits)
const validEmail = computed(() => isEmail(vModel.value))
const focus = (el: HTMLInputElement) => el.focus()
const focus = (el: HTMLInputElement) => el?.focus()
</script>
<template>
@ -18,7 +18,7 @@ const editEnabled = inject(EditModeInj, ref(false))
const vModel = useVModel(props, 'modelValue', emits)
const vModel = useVModel(props, 'modelValue', emit)
function onKeyDown(evt: KeyboardEvent) {
return evt.key === '.' && evt.preventDefault()
@ -14,7 +14,7 @@ const editEnabled = inject(EditModeInj, ref(false))
const focus = (el: HTMLTextAreaElement) => el.focus()
const focus = (el: HTMLTextAreaElement) => el?.focus()
@ -26,7 +26,7 @@ const vModel = computed({
const isValid = computed(() => value && isValidURL(value))