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

nuke-input

Package Overview
Dependencies
Maintainers
3
Versions
185
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuke-input - npm Package Compare versions

Comparing version 1.0.50 to 1.0.51

4

HISTORY.md
# Changelog
## 1.0.51 / 2018-02-07
* [[37eb849](http://gitlab.alibaba-inc.com/nuke/input/commit/37eb8498d1540bf6d4cf2b02da918c306276aefe)] - `fix` fix value ==='' and treate it as null bug
## 1.0.50 / 2018-02-06

@@ -5,0 +9,0 @@

12

lib/view/base.js

@@ -70,11 +70,2 @@ 'use strict';

}, {
key: 'componentWillReceiveProps',
value: function componentWillReceiveProps(nextProps) {
if ('value' in nextProps && nextProps.value !== null) {
this.setState({
value: nextProps.value
});
}
}
}, {
key: 'getRef',

@@ -126,3 +117,2 @@ value: function getRef() {

var _props2 = this.props,
defaultValue = _props2.defaultValue,
value = _props2.value,

@@ -144,3 +134,3 @@ onFocus = _props2.onFocus,

placeholderColor = _props2.placeholderColor,
others = _objectWithoutProperties(_props2, ['defaultValue', 'value', 'onFocus', 'onInput', 'onBlur', 'readOnly', 'disabled', 'style', 'maxLength', 'multiple', 'returnKeyType', 'autoFocus', 'fixedFont', 'rows', 'type', 'placeholderColor']);
others = _objectWithoutProperties(_props2, ['value', 'onFocus', 'onInput', 'onBlur', 'readOnly', 'disabled', 'style', 'maxLength', 'multiple', 'returnKeyType', 'autoFocus', 'fixedFont', 'rows', 'type', 'placeholderColor']);

@@ -147,0 +137,0 @@ var attrs = {

@@ -534,4 +534,3 @@ 'use strict';

placeholder: '',
value: value || null,
defaultValue: defaultValue,
value: typeof value !== null ? value : null,
type: type,

@@ -546,5 +545,2 @@ style: multiple ? styles['multiple-md-input'] : styles['md-input'],

if ('value' in inputAttrs) {
delete inputAttrs.defaultValue;
}
if (_nukeEnv.isWeb) {

@@ -551,0 +547,0 @@ if ('readOnly' in inputAttrs && !inputAttrs.readOnly) {

@@ -156,3 +156,3 @@ 'use strict';

var inputAttrs = _extends({}, others, {
value: value,
value: typeof value !== null ? value : null,
readOnly: readOnly,

@@ -177,5 +177,3 @@ multiple: multiple,

}
if (value) {
delete inputAttrs.defaultValue;
}
if (multiple) {

@@ -182,0 +180,0 @@ inputAttrs.rows = rows || 3;

{
"name": "nuke-input",
"version": "1.0.50",
"version": "1.0.51",
"description": "输入框",

@@ -5,0 +5,0 @@ "main": "lib/index",

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