bemto-input
Advanced tools
Comparing version 0.5.0 to 0.5.1
## Changelog | ||
### v0.5.1 (2018-07-30) | ||
- Removed custom autofocus due to potential remount problems. | ||
### v0.5.0 (2018-07-19) | ||
@@ -4,0 +8,0 @@ |
@@ -20,12 +20,3 @@ const bemto = require('bemto-components'); | ||
}, | ||
componentDidMount: (component) => { | ||
if (component.props.autoFocus) { | ||
component.elemRefs.Controller.focus(); | ||
} | ||
}, | ||
componentDidUpdate: (prevProps, prevState, snapshot, component) => { | ||
const isFocusChange = prevState.isFocused !== component.state.isFocused; | ||
if (component.props.autoFocus && !component.state.isFocused && !isFocusChange) { | ||
component.elemRefs.Controller.focus(); | ||
} | ||
if ( | ||
@@ -91,3 +82,3 @@ prevState.value !== component.state.value | ||
tag: 'input', | ||
acceptProps: { except: ['onChange', 'onFocus', 'onBlur', 'autoFocus'] }, | ||
acceptProps: { except: ['onChange', 'onFocus', 'onBlur'] }, | ||
content: { children: true }, | ||
@@ -94,0 +85,0 @@ createRef: true, |
{ | ||
"name": "bemto-input", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "Complex input foundation based on bemto-components & styled-components", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30365
13
284