1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-23 00:22:19 +01:00

fix: Ensure chips are wrapped (#194)

This commit is contained in:
Valentin Jonovs 2019-10-26 20:58:45 +02:00 committed by Ivar Conradi Østhus
parent ef2999caa1
commit 8b36bc1c0e
2 changed files with 4 additions and 1 deletions

View File

@ -9,6 +9,7 @@ exports[`renders correctly when disabled 1`] = `
style={ style={
Object { Object {
"display": "flex", "display": "flex",
"flexWrap": "wrap",
} }
} }
> >
@ -44,6 +45,7 @@ exports[`renders strategy with empty list as param 1`] = `
style={ style={
Object { Object {
"display": "flex", "display": "flex",
"flexWrap": "wrap",
} }
} }
/> />
@ -92,6 +94,7 @@ exports[`renders strategy with list as param 1`] = `
style={ style={
Object { Object {
"display": "flex", "display": "flex",
"flexWrap": "wrap",
} }
} }
> >

View File

@ -55,7 +55,7 @@ export default class InputList extends Component {
<div> <div>
<p>{name}</p> <p>{name}</p>
<div style={{ display: 'flex' }}> <div style={{ display: 'flex', flexWrap: 'wrap' }}>
{list.map((entryValue, index) => ( {list.map((entryValue, index) => (
<Chip <Chip
key={index + entryValue} key={index + entryValue}