ywana-core8 0.0.240 → 0.0.241

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 CHANGED
@@ -885,7 +885,7 @@ var TextField = function TextField(props) {
885
885
  }
886
886
 
887
887
  function focus() {
888
- if (site) {
888
+ if (site && site.changeFocus) {
889
889
  site.changeFocus({
890
890
  lose: function lose() {// DO NOTHING
891
891
  }
@@ -955,11 +955,12 @@ var TextArea = function TextArea(props) {
955
955
  event.stopPropagation();
956
956
  event.preventDefault();
957
957
  var value = event.target.value;
958
+ console.log(value);
958
959
  if (onChange) onChange(id, value);
959
960
  }
960
961
 
961
962
  function focus() {
962
- if (site) {
963
+ if (site && site.changeFocus) {
963
964
  site.changeFocus({
964
965
  lose: function lose() {// DO NOTHING
965
966
  }