ywana-core8 0.0.364 → 0.0.365
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +14 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +14 -0
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +14 -0
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/textfield.js +13 -1
- package/src/html/textfield.test.js +3 -1
- package/src/site/site.test.js +22 -3
package/dist/index.modern.js
CHANGED
@@ -946,6 +946,19 @@ var TextField = function TextField(props) {
|
|
946
946
|
}
|
947
947
|
|
948
948
|
function focus() {
|
949
|
+
console.log("FOCUS");
|
950
|
+
|
951
|
+
if (site && site.changeFocus) {
|
952
|
+
site.changeFocus({
|
953
|
+
lose: function lose() {// DO NOTHING
|
954
|
+
}
|
955
|
+
});
|
956
|
+
}
|
957
|
+
}
|
958
|
+
|
959
|
+
function focusOut() {
|
960
|
+
console.log("FOCUS OUT");
|
961
|
+
|
949
962
|
if (site && site.changeFocus) {
|
950
963
|
site.changeFocus({
|
951
964
|
lose: function lose() {// DO NOTHING
|
@@ -974,6 +987,7 @@ var TextField = function TextField(props) {
|
|
974
987
|
onChange: change,
|
975
988
|
onKeyDown: onKeyPress,
|
976
989
|
onFocus: focus,
|
990
|
+
onBlur: focusOut,
|
977
991
|
readOnly: readOnly
|
978
992
|
}), !readOnly && canClear && value && value.length > 0 ? /*#__PURE__*/React.createElement(Icon, {
|
979
993
|
icon: "close",
|