@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 +6 -0
- package/dist/true-react-common-ui-kit.js +4 -1
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +4 -1
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/src/components/Select/Select.stories.tsx +1 -0
- package/src/components/Select/Select.tsx +5 -1
package/README.md
CHANGED
|
@@ -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({
|