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.cjs
CHANGED
@@ -954,6 +954,19 @@ var TextField = function TextField(props) {
|
|
954
954
|
}
|
955
955
|
|
956
956
|
function focus() {
|
957
|
+
console.log("FOCUS");
|
958
|
+
|
959
|
+
if (site && site.changeFocus) {
|
960
|
+
site.changeFocus({
|
961
|
+
lose: function lose() {// DO NOTHING
|
962
|
+
}
|
963
|
+
});
|
964
|
+
}
|
965
|
+
}
|
966
|
+
|
967
|
+
function focusOut() {
|
968
|
+
console.log("FOCUS OUT");
|
969
|
+
|
957
970
|
if (site && site.changeFocus) {
|
958
971
|
site.changeFocus({
|
959
972
|
lose: function lose() {// DO NOTHING
|
@@ -982,6 +995,7 @@ var TextField = function TextField(props) {
|
|
982
995
|
onChange: change,
|
983
996
|
onKeyDown: onKeyPress,
|
984
997
|
onFocus: focus,
|
998
|
+
onBlur: focusOut,
|
985
999
|
readOnly: readOnly
|
986
1000
|
}), !readOnly && canClear && value && value.length > 0 ? /*#__PURE__*/React__default["default"].createElement(Icon, {
|
987
1001
|
icon: "close",
|