@trackunit/react-form-components 0.1.56 → 0.1.57

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/index.cjs.js CHANGED
@@ -2076,7 +2076,7 @@ const useCustomComponents = ({ componentsProps, disabled, readOnly, refMenuIsEna
2076
2076
  ...componentsProps,
2077
2077
  };
2078
2078
  // eslint-disable-next-line react-hooks/exhaustive-deps
2079
- }, [componentsProps, disabled, maxSelectedDisplayCount]); // do not add dropdownIcon (it will cause issue with opening/closing list for selects with custom icon)
2079
+ }, [componentsProps, disabled, maxSelectedDisplayCount, readOnly]); // do not add dropdownIcon (it will cause issue with opening/closing list for selects with custom icon)
2080
2080
  return customComponents;
2081
2081
  };
2082
2082
 
package/index.esm.js CHANGED
@@ -2057,7 +2057,7 @@ const useCustomComponents = ({ componentsProps, disabled, readOnly, refMenuIsEna
2057
2057
  ...componentsProps,
2058
2058
  };
2059
2059
  // eslint-disable-next-line react-hooks/exhaustive-deps
2060
- }, [componentsProps, disabled, maxSelectedDisplayCount]); // do not add dropdownIcon (it will cause issue with opening/closing list for selects with custom icon)
2060
+ }, [componentsProps, disabled, maxSelectedDisplayCount, readOnly]); // do not add dropdownIcon (it will cause issue with opening/closing list for selects with custom icon)
2061
2061
  return customComponents;
2062
2062
  };
2063
2063
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-form-components",
3
- "version": "0.1.56",
3
+ "version": "0.1.57",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {