@react-aria/dnd 3.5.4-nightly.4518 → 3.5.4-nightly.4534

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/dist/import.mjs CHANGED
@@ -2252,7 +2252,7 @@ const $fd98cf7cbf233429$var$MESSAGES = {
2252
2252
  };
2253
2253
  function $fd98cf7cbf233429$export$b35afafff42da2d9(props, state) {
2254
2254
  let stringFormatter = (0, $fP8tg$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($865c2eb7c00a83f1$exports))), "@react-aria/dnd");
2255
- let isDisabled = state.selectionManager.isDisabled(props.key);
2255
+ let isDisabled = state.isDisabled || state.selectionManager.isDisabled(props.key);
2256
2256
  let { dragProps: dragProps, dragButtonProps: dragButtonProps } = (0, $8253ed7ece74b463$export$7941f8aafa4b6021)({
2257
2257
  getItems () {
2258
2258
  return state.getItems(props.key);
@@ -2315,10 +2315,10 @@ function $fd98cf7cbf233429$export$b35afafff42da2d9(props, state) {
2315
2315
  delete dragProps["aria-describedby"];
2316
2316
  // Require Alt key if there is a conflicting action.
2317
2317
  dragProps.onKeyDownCapture = (e)=>{
2318
- if (e.altKey) onKeyDownCapture(e);
2318
+ if (e.altKey) onKeyDownCapture === null || onKeyDownCapture === void 0 ? void 0 : onKeyDownCapture(e);
2319
2319
  };
2320
2320
  dragProps.onKeyUpCapture = (e)=>{
2321
- if (e.altKey) onKeyUpCapture(e);
2321
+ if (e.altKey) onKeyUpCapture === null || onKeyUpCapture === void 0 ? void 0 : onKeyUpCapture(e);
2322
2322
  };
2323
2323
  }
2324
2324
  return {
package/dist/main.js CHANGED
@@ -2272,7 +2272,7 @@ const $0cbbd00cda972c67$var$MESSAGES = {
2272
2272
  };
2273
2273
  function $0cbbd00cda972c67$export$b35afafff42da2d9(props, state) {
2274
2274
  let stringFormatter = (0, $4vY0V$reactariai18n.useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($7c8adf3925a26206$exports))), "@react-aria/dnd");
2275
- let isDisabled = state.selectionManager.isDisabled(props.key);
2275
+ let isDisabled = state.isDisabled || state.selectionManager.isDisabled(props.key);
2276
2276
  let { dragProps: dragProps, dragButtonProps: dragButtonProps } = (0, $dc204e8ec58447a6$export$7941f8aafa4b6021)({
2277
2277
  getItems () {
2278
2278
  return state.getItems(props.key);
@@ -2335,10 +2335,10 @@ function $0cbbd00cda972c67$export$b35afafff42da2d9(props, state) {
2335
2335
  delete dragProps["aria-describedby"];
2336
2336
  // Require Alt key if there is a conflicting action.
2337
2337
  dragProps.onKeyDownCapture = (e)=>{
2338
- if (e.altKey) onKeyDownCapture(e);
2338
+ if (e.altKey) onKeyDownCapture === null || onKeyDownCapture === void 0 ? void 0 : onKeyDownCapture(e);
2339
2339
  };
2340
2340
  dragProps.onKeyUpCapture = (e)=>{
2341
- if (e.altKey) onKeyUpCapture(e);
2341
+ if (e.altKey) onKeyUpCapture === null || onKeyUpCapture === void 0 ? void 0 : onKeyUpCapture(e);
2342
2342
  };
2343
2343
  }
2344
2344
  return {