@esvndev/es-react-config-setting 1.0.83 → 1.0.84

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.mjs CHANGED
@@ -17235,7 +17235,7 @@ const SettingApp = (props) => {
17235
17235
  switch (data.type) {
17236
17236
  case "switch":
17237
17237
  case "checkbox":
17238
- return (jsx("div", { className: "checkbox", title: data.description, children: jsx(Input$1, { style: { width: '237px !important' }, type: "checkbox", checked: !!value, onChange: (e) => change_save(root, data, e) }) }, data.id));
17238
+ return (jsx("div", { className: "checkbox", title: data.description, children: jsx(Input$1, { style: { width: '237px !important' }, type: "checkbox", checked: (value === "true"), onChange: (e) => change_save(root, data, e) }) }, data.id));
17239
17239
  case "radio":
17240
17240
  return (jsx("div", { className: "radio-group", title: data.description, children: data.option?.map((opt, index) => (jsxs("label", { children: [jsx(Input$1, { type: "radio", name: data.name, value: opt.value, checked: value === opt.value, onChange: (e) => change_save(root, data, e) }), opt.name] }, index))) }, data.id));
17241
17241
  case "combobox":