@esvndev/es-react-config-setting 1.0.49 → 1.0.50

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.js CHANGED
@@ -18825,7 +18825,12 @@ const SettingApp = (props) => {
18825
18825
  //Sự kiện giá trị thay đổi
18826
18826
  const _eventChange = (data) => {
18827
18827
  if (data.target) {
18828
- console.log("new data", data.target.value);
18828
+ if (data.target.type === 'checkbox') {
18829
+ console.log("new data", data.target.checked);
18830
+ }
18831
+ else {
18832
+ console.log("new data", data.target.value);
18833
+ }
18829
18834
  if (eventChange)
18830
18835
  eventChange([{ key: "x", value: "x", state: "update" }]);
18831
18836
  }