dynamic-modal 1.1.21 → 1.1.23

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.d.ts CHANGED
@@ -3,3 +3,4 @@ export type { IModalConfigLoader, IModalConfigProps, IModalRenderCondition, IMod
3
3
  export { useModalHandler } from './src/hooks/modal-handler';
4
4
  export { ComponentState, ComponentStateContext } from './src/context/component/component-state';
5
5
  export type { IComponentState } from './src/interfaces/component-state';
6
+ export type { IOption } from './src/interfaces/option';
@@ -50,7 +50,7 @@ const MakeSelect = ({ element, control, watch, setValue, unregister, }) => {
50
50
  if (options === undefined || options === null)
51
51
  return;
52
52
  setLiveData(options);
53
- setValue(elementName, options);
53
+ setValue(elementName, inputProps.defaultValue ?? []);
54
54
  })
55
55
  .finally(() => {
56
56
  setLiveSearching(false);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dynamic-modal",
3
- "version": "1.1.21",
3
+ "version": "1.1.23",
4
4
  "description": "The dynamic-modal is a solution of creation different modals into project using a json configuration file",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",