Skip to content

Commit

Permalink
fix : add to styling logic
Browse files Browse the repository at this point in the history
fix: placeholder issue

fix: add to styling logic
  • Loading branch information
hovelopin committed Feb 5, 2024
1 parent d5cc951 commit c963edd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion react-multi-email/ReactMultiEmail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ export function ReactMultiEmail(props: IReactMultiEmailProps) {
return (
<div
className={`${className} ${noClass ? '' : 'react-multi-email'} ${focused ? 'focused' : ''} ${
inputValue === '' && emails.length === 0 ? 'empty' : ''
inputValue === '' && emails.length === 0 ? 'empty' : 'fill'
}`}
style={style}
onClick={() => emailInputRef.current?.focus()}
Expand Down
2 changes: 1 addition & 1 deletion react-multi-email/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
display: inline;
color: #ccc;
}
.react-multi-email.focused > span[data-placeholder] {
.react-multi-email.fill > span[data-placeholder] {
display: none;
}

Expand Down

0 comments on commit c963edd

Please sign in to comment.