From 315c2bbb593199f2a4ac239a0fe3a12fc250397c Mon Sep 17 00:00:00 2001 From: emyarod Date: Wed, 18 Nov 2020 09:38:10 -0600 Subject: [PATCH] fix(NumberInput): remove default internal state value in gDSFP --- packages/react/src/components/NumberInput/NumberInput.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/components/NumberInput/NumberInput.js b/packages/react/src/components/NumberInput/NumberInput.js index ee0f27d5d530..1e336d5cb115 100644 --- a/packages/react/src/components/NumberInput/NumberInput.js +++ b/packages/react/src/components/NumberInput/NumberInput.js @@ -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 !== '') {