Skip to content

Commit

Permalink
feat: remove cursor color transparency
Browse files Browse the repository at this point in the history
  • Loading branch information
logaretm committed Mar 9, 2025
1 parent e7519af commit 3f5af1c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions packages/core/src/useOtpField/useOtpSlot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,6 @@ export function useOtpSlot(_props: Reactivify<OtpSlotProps>) {
// TODO: Should be either done or next depending on if it's the last slot
enterkeyhint: 'next',
...handlers,
style: {
caretColor: 'transparent',
},
};

if (toValue(props.accept) === 'numeric') {
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function onCompleted(value: string) {
</script>

<template>
<OtpField name="otp" label="OTP" :length="6" prefix="G-" masked @completed="onCompleted" />
<OtpField name="otp" label="OTP" accept="numeric" :length="4" prefix="G-" masked @completed="onCompleted" />

<div class="flex w-full">
<button @click="form.setValue('otp', 'G-4321')">Set OTP</button>
Expand Down

0 comments on commit 3f5af1c

Please sign in to comment.