labsense-ui-kit 1.2.19 → 1.2.21

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.
@@ -3763,6 +3763,7 @@ var useCustomModal = function useCustomModal(_ref4) {
3763
3763
  }, content);
3764
3764
  };
3765
3765
  return {
3766
+ isOpen: isOpen,
3766
3767
  setIsOpen: setIsOpen,
3767
3768
  createModal: createModal
3768
3769
  };
@@ -4804,7 +4805,7 @@ var ButtonComponent = function ButtonComponent(_ref21) {
4804
4805
  var loaderPos = loaderProps.loaderPosition || 'right';
4805
4806
  return React.createElement(StyledButton, {
4806
4807
  "$disabled": disabled,
4807
- onClick: onClick,
4808
+ onClick: !disabled ? onClick : undefined,
4808
4809
  "$buttonWidth": buttonWidth,
4809
4810
  "$background": background,
4810
4811
  "$borderDefault": borderDefault,