Skip to content

Commit ec9c177

Browse files
committed
fix(numberfield): fix 100% width issue
1 parent 876c17d commit ec9c177

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/components/NumberField/NumberField.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ const NumberField = React.forwardRef(function NumberField(props, ref) {
139139
disabled={disabled}
140140
type='number'
141141
ref={ref}
142-
width='100%'
142+
fullWidth
143143
onBlur={onBlur}
144144
/>
145145
<StyledButtonWrapper isFlat={variant === 'flat'}>

src/components/Tabs/Tabs.stories.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,7 @@ class TabsDemo extends React.Component {
7979
<TabPanel value={0} activeTab={activeTab}>
8080
<Fieldset label='Order:'>
8181
<div style={{ padding: '0.5em 0 0.5em 0' }}>Amount:</div>
82-
<NumberField
83-
width='100%'
84-
min={0}
85-
value={0}
86-
onChange={() => null}
87-
/>
82+
<NumberField width='100%' min={0} defaultValue={0} />
8883
<Checkbox
8984
style={{ marginTop: '1rem' }}
9085
name='shipping'

0 commit comments

Comments
 (0)