@aloudata/aloudata-design 2.15.3 → 2.15.4

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.
@@ -183,12 +183,18 @@ var BaseSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
183
183
  }
184
184
  });
185
185
  }, [displayMenu, isMultipleMode, onToggleOpen, onOptionSelect]);
186
+ var onSelectClick = React.useCallback(function (e) {
187
+ if (disabled) {
188
+ return;
189
+ }
190
+ onClick === null || onClick === void 0 ? void 0 : onClick(e);
191
+ }, [disabled, onClick]);
186
192
  return /*#__PURE__*/React.createElement("div", {
187
193
  className: mergedClassName,
188
194
  style: _objectSpread(_objectSpread({}, widthStyle), style),
189
195
  ref: selectRef,
190
196
  id: id,
191
- onClick: onClick,
197
+ onClick: onSelectClick,
192
198
  onMouseEnter: function onMouseEnter() {
193
199
  setIsHover(true);
194
200
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aloudata/aloudata-design",
3
- "version": "2.15.3",
3
+ "version": "2.15.4",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",