Skip to content
This repository has been archived by the owner on Dec 23, 2022. It is now read-only.

Commit

Permalink
Fix placeholder being cut off even if fullWidth is enabled.
Browse files Browse the repository at this point in the history
Fixes #200
  • Loading branch information
leMaik committed Jan 20, 2019
1 parent 0964b09 commit d47cc25
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ChipInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const styles = (theme) => {
root: {},
inputRoot: {
display: 'inline-block',
flex: '1 0 auto',
marginTop: 0,
'&$outlined,&$filled': {
boxSizing: 'border-box'
Expand All @@ -43,6 +44,9 @@ const styles = (theme) => {
},
input: {
display: 'inline-block',
textOverflow: 'ellipsis',
overflow: 'hidden',
whiteSpace: 'nowrap',
appearance: 'none', // Remove border in Safari, doesn't seem to break anything in other browsers
WebkitTapHighlightColor: 'rgba(0,0,0,0)', // Remove mobile color flashing (deprecated style).
float: 'left',
Expand All @@ -51,6 +55,8 @@ const styles = (theme) => {
}
},
chipContainer: {
display: 'flex',
flexFlow: 'row wrap',
cursor: 'text',
marginBottom: -2,
minHeight: 40,
Expand Down

0 comments on commit d47cc25

Please sign in to comment.