polythene-core-textfield
Advanced tools
Comparing version 1.1.2 to 1.2.0
@@ -129,3 +129,7 @@ (function (global, factory) { | ||
setInputState: function setInputState(newState) { | ||
return state.setInputState(_extends({}, newState, { vnode: vnode })); | ||
var hasNewValue = newState.value !== undefined && newState.value !== state.inputEl().value; | ||
var hasNewFocus = newState.focus !== undefined && newState.focus !== state.hasFocus(); | ||
if (hasNewValue || hasNewFocus) { | ||
state.setInputState(_extends({}, newState, { vnode: vnode })); | ||
} | ||
} | ||
@@ -177,2 +181,5 @@ }); | ||
var onMount = function onMount(vnode) { | ||
if (!vnode.dom) { | ||
return; | ||
} | ||
var dom = vnode.dom; | ||
@@ -206,3 +213,2 @@ var state = vnode.state; | ||
}); | ||
notifyState(vnode); | ||
@@ -209,0 +215,0 @@ }; |
{ | ||
"name": "polythene-core-textfield", | ||
"version": "1.1.2", | ||
"version": "1.2.0", | ||
"description": "", | ||
@@ -10,3 +10,3 @@ "main": "dist/polythene-core-textfield", | ||
"rollup": "../../node_modules/rollup/bin/rollup -c ../../scripts/rollup.umd.js && ../../node_modules/rollup/bin/rollup -c ../../scripts/rollup.es.js", | ||
"build": "yarn run clean && yarn run rollup" | ||
"build": "npm run clean && npm run rollup" | ||
}, | ||
@@ -18,5 +18,5 @@ "files": [ | ||
"dependencies": { | ||
"polythene-core": "^1.1.2", | ||
"polythene-css-classes": "^1.1.2", | ||
"polythene-theme": "^1.1.2" | ||
"polythene-core": "^1.2.0", | ||
"polythene-css-classes": "^1.2.0", | ||
"polythene-theme": "^1.2.0" | ||
}, | ||
@@ -23,0 +23,0 @@ "author": "Arthur Clemens <arthurclemens@gmail.com> (http://arthurclemens.com)", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
73949
733
Updatedpolythene-core@^1.2.0
Updatedpolythene-css-classes@^1.2.0
Updatedpolythene-theme@^1.2.0