dynamic-modal 1.1.13 → 1.1.14

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.
@@ -9,10 +9,12 @@ const useEnableIf = ({ elementEnableIf }) => {
9
9
  });
10
10
  const checkEnable = async (formData, { name }) => {
11
11
  const targetFieldData = formData[name];
12
- if (targetFieldData === undefined ||
13
- targetFieldData === '' ||
14
- targetFieldData === null)
15
- return false;
12
+ // if (
13
+ // targetFieldData === undefined ||
14
+ // targetFieldData === '' ||
15
+ // targetFieldData === null
16
+ // )
17
+ // return false;
16
18
  const enableIfConfig = elementEnableIf;
17
19
  const isLiveEnable = !!enableIfConfig?.action && !!enableIfConfig.condition;
18
20
  if (isLiveEnable && enableIfConfig.condition.includes(name)) {
@@ -9,10 +9,12 @@ const useRenderIf = ({ elementRenderIf }) => {
9
9
  });
10
10
  const checkRender = async (formData, { name }) => {
11
11
  const targetFieldData = formData[name];
12
- if (targetFieldData === undefined ||
13
- targetFieldData === '' ||
14
- targetFieldData === null)
15
- return false;
12
+ // if (
13
+ // targetFieldData === undefined ||
14
+ // targetFieldData === '' ||
15
+ // targetFieldData === null
16
+ // )
17
+ // return false;
16
18
  const renderIfConfig = elementRenderIf;
17
19
  const isLiveRender = !!renderIfConfig?.action && !!renderIfConfig?.condition;
18
20
  if (isLiveRender && renderIfConfig.condition.includes(name)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dynamic-modal",
3
- "version": "1.1.13",
3
+ "version": "1.1.14",
4
4
  "description": "The dynamic-modal is a solution of creation different modals into project using a json configuration file",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -24,12 +24,12 @@ const useEnableIf = ({ elementEnableIf }: IRenderIfProps) => {
24
24
  ) => {
25
25
  const targetFieldData = formData[name] as string | number;
26
26
 
27
- if (
28
- targetFieldData === undefined ||
29
- targetFieldData === '' ||
30
- targetFieldData === null
31
- )
32
- return false;
27
+ // if (
28
+ // targetFieldData === undefined ||
29
+ // targetFieldData === '' ||
30
+ // targetFieldData === null
31
+ // )
32
+ // return false;
33
33
 
34
34
  const enableIfConfig = elementEnableIf;
35
35
  const isLiveEnable: boolean =
@@ -24,12 +24,12 @@ const useRenderIf = ({ elementRenderIf }: IRenderIfProps) => {
24
24
  ) => {
25
25
  const targetFieldData = formData[name] as string | number;
26
26
 
27
- if (
28
- targetFieldData === undefined ||
29
- targetFieldData === '' ||
30
- targetFieldData === null
31
- )
32
- return false;
27
+ // if (
28
+ // targetFieldData === undefined ||
29
+ // targetFieldData === '' ||
30
+ // targetFieldData === null
31
+ // )
32
+ // return false;
33
33
 
34
34
  const renderIfConfig = elementRenderIf!;
35
35
  const isLiveRender: boolean =