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.umd.js CHANGED
@@ -882,7 +882,7 @@
882
882
  }
883
883
 
884
884
  function focus() {
885
- if (site) {
885
+ if (site && site.changeFocus) {
886
886
  site.changeFocus({
887
887
  lose: function lose() {// DO NOTHING
888
888
  }
@@ -952,11 +952,12 @@
952
952
  event.stopPropagation();
953
953
  event.preventDefault();
954
954
  var value = event.target.value;
955
+ console.log(value);
955
956
  if (onChange) onChange(id, value);
956
957
  }
957
958
 
958
959
  function focus() {
959
- if (site) {
960
+ if (site && site.changeFocus) {
960
961
  site.changeFocus({
961
962
  lose: function lose() {// DO NOTHING
962
963
  }