Skip to content

Commit 014dca6

Browse files
feat(): add isFilled class to already filled item
1 parent c68641a commit 014dca6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ const ReactInputVerificationCode = ({
206206
role='button'
207207
tabIndex={0}
208208
className={`ReactInputVerificationCode__item ${
209-
i === activeIndex ? 'is-active' : ''
210-
}`}
209+
value[i] !== placeholder ? 'is-filled' : ''
210+
} ${i === activeIndex ? 'is-active' : ''} `}
211211
onFocus={onItemFocus(i)}
212212
>
213213
{value[i] || placeholder}

0 commit comments

Comments
 (0)