From cfa7027f931b6c1c2d634c847423f7ff6cbd82dc Mon Sep 17 00:00:00 2001 From: Justin Hall Date: Tue, 9 Apr 2019 14:37:07 -0600 Subject: [PATCH] Remove focused property from input props --- src/__tests__/__snapshots__/index.js.snap | 2 -- src/index.js | 1 - 2 files changed, 3 deletions(-) diff --git a/src/__tests__/__snapshots__/index.js.snap b/src/__tests__/__snapshots__/index.js.snap index 50fa74b..68c992b 100644 --- a/src/__tests__/__snapshots__/index.js.snap +++ b/src/__tests__/__snapshots__/index.js.snap @@ -20,7 +20,6 @@ Object { exports[`getInputProps 1`] = ` Object { - "focused": undefined, "onBlur": [Function], "onFocus": [Function], "pattern": "[0-9]*", @@ -32,7 +31,6 @@ Object { exports[`getInputProps 2`] = ` Object { - "focused": true, "onBlur": [Function], "onFocus": [Function], "pattern": "[0-9]*", diff --git a/src/index.js b/src/index.js index add4245..9db66d9 100644 --- a/src/index.js +++ b/src/index.js @@ -120,7 +120,6 @@ module.exports = exports.default = class StepperPrimitive extends React.Componen pattern: numericPattern, onBlur: callAll(props.onBlur, this.handleBlur), onFocus: callAll(props.onFocus, this.handleFocus), - focused: this.state.focused, // When the input is focused, let the user type freely. // When the input isn't, lock it to the current value ...this.state.focused ? {} : {