@true-engineering/true-react-common-ui-kit 3.37.0 → 3.38.0

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/README.md CHANGED
@@ -11,6 +11,12 @@
11
11
 
12
12
  # Release Notes
13
13
 
14
+ ## 3.38.0
15
+
16
+ ### Changes
17
+
18
+ - **Select**: Запрещает открывать `SelectList` при `isReadonly`
19
+
14
20
  ## 3.37.0
15
21
 
16
22
  ### Changes
@@ -11778,6 +11778,9 @@ function Select(props) {
11778
11778
  onBlur
11779
11779
  ]);
11780
11780
  var handleListOpen = function() {
11781
+ if (isReadonly) {
11782
+ return;
11783
+ }
11781
11784
  if (!isListOpen) {
11782
11785
  setIsListOpen(true);
11783
11786
  if (!(dropdownOptions === null || dropdownOptions === void 0 ? void 0 : dropdownOptions.shouldUsePopper)) {
@@ -12085,7 +12088,7 @@ function Select(props) {
12085
12088
  children: [
12086
12089
  /* @__PURE__ */ jsxs("div", {
12087
12090
  className: clsx(classes.inputWrapper, isDisabled && classes.disabled),
12088
- onClick: isDisabled ? void 0 : handleOnClick,
12091
+ onClick: isDisabled || isReadonly ? void 0 : handleOnClick,
12089
12092
  ref: inputWrapper,
12090
12093
  children: [
12091
12094
  /* @__PURE__ */ jsx(Input, _object_spread$G({