Skip to content

Commit ce3b561

Browse files
authored
Merge pull request #22 from LukeWlodarczyk/feature/is-filled
feat: add isFilled class to already filled item
2 parents c48d2ff + 3a06162 commit ce3b561

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)