diff --git a/packages/radix-vue/src/PinInput/PinInputInput.vue b/packages/radix-vue/src/PinInput/PinInputInput.vue index 6477998a1..9d0f2841f 100644 --- a/packages/radix-vue/src/PinInput/PinInputInput.vue +++ b/packages/radix-vue/src/PinInput/PinInputInput.vue @@ -52,7 +52,7 @@ function handleInput(event: InputEvent) { function resetPlaceholder() { const target = currentElement.value as HTMLInputElement nextTick(() => { - if (!target.value) + if (target && !target.value) target.placeholder = context.placeholder.value }) }