Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bemto-input

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bemto-input - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

.npmignore

4

Changelog.md
## 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 @@

11

lib/index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc