@lumx/react 3.19.1-alpha.2 → 3.19.1-alpha.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.
package/index.js
CHANGED
|
@@ -1208,7 +1208,7 @@ const RawClickable = forwardRefPolymorphic((props, ref) => {
|
|
|
1208
1208
|
}
|
|
1209
1209
|
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1210
1210
|
ref: ref,
|
|
1211
|
-
"aria-disabled": isAnyDisabled
|
|
1211
|
+
"aria-disabled": isAnyDisabled || undefined
|
|
1212
1212
|
}, forwardedProps, clickableProps, {
|
|
1213
1213
|
onClick: event => {
|
|
1214
1214
|
if (isAnyDisabled) {
|
|
@@ -13697,8 +13697,8 @@ const Thumbnail = forwardRef((props, ref) => {
|
|
|
13697
13697
|
// Remove the image on custom fallback.
|
|
13698
13698
|
imageErrorStyle.display = 'none';
|
|
13699
13699
|
}
|
|
13700
|
-
const isLink = (linkProps === null || linkProps === void 0 ? void 0 : linkProps.href) || linkAs;
|
|
13701
|
-
const isClickable = !isAnyDisabled && (isLink || forwardedProps.onClick);
|
|
13700
|
+
const isLink = Boolean((linkProps === null || linkProps === void 0 ? void 0 : linkProps.href) || linkAs);
|
|
13701
|
+
const isClickable = !isAnyDisabled && Boolean(isLink || !!forwardedProps.onClick);
|
|
13702
13702
|
const Wrapper = isClickable ? RawClickable : 'div';
|
|
13703
13703
|
const wrapperProps = _objectSpread2({}, forwardedProps);
|
|
13704
13704
|
if (isClickable) {
|