@esvndev/es-react-config-setting 1.0.84 → 1.0.85
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 +4 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -17228,14 +17228,17 @@ const SettingApp = (props) => {
|
|
|
17228
17228
|
if (saveSettings && _m[obj.id] !== null) {
|
|
17229
17229
|
clearTimeout(_m[obj.id]);
|
|
17230
17230
|
}
|
|
17231
|
+
let time_update = 1000;
|
|
17231
17232
|
let value;
|
|
17232
17233
|
let value_file;
|
|
17233
17234
|
if (e.target.type === "checkbox") {
|
|
17234
17235
|
value = e.target.checked;
|
|
17236
|
+
time_update = 100;
|
|
17235
17237
|
}
|
|
17236
17238
|
else if (e.target.type === "file") {
|
|
17237
17239
|
value = e.target.value;
|
|
17238
17240
|
value_file = e.target.files?.[0] ?? null;
|
|
17241
|
+
time_update = 100;
|
|
17239
17242
|
}
|
|
17240
17243
|
else {
|
|
17241
17244
|
value = e.target.value;
|
|
@@ -17254,7 +17257,7 @@ const SettingApp = (props) => {
|
|
|
17254
17257
|
};
|
|
17255
17258
|
_m[obj.id] = setTimeout(() => {
|
|
17256
17259
|
_eventChange(_data);
|
|
17257
|
-
},
|
|
17260
|
+
}, time_update);
|
|
17258
17261
|
};
|
|
17259
17262
|
//Hàm sử dụng tạo theo loại giá trị
|
|
17260
17263
|
const _renderInput = (root, data) => {
|