Skip to content

Commit

Permalink
fix(NumberInput): remove default internal state value in gDSFP
Browse files Browse the repository at this point in the history
  • Loading branch information
emyarod committed Nov 18, 2020
1 parent 7864090 commit 315c2bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/components/NumberInput/NumberInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ class NumberInput extends Component {
translateWithId: (id) => defaultTranslations[id],
};

static getDerivedStateFromProps({ min, max, value = 0 }, state) {
static getDerivedStateFromProps({ min, max, value }, state) {
const { prevValue } = state;

if (useControlledStateWithValue && value === '' && prevValue !== '') {
Expand Down

0 comments on commit 315c2bb

Please sign in to comment.