@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 +3 -3
- package/dist/main.js +3 -3
- package/dist/main.js.map +1 -1
- package/dist/module.js +3 -3
- package/dist/module.js.map +1 -1
- package/package.json +11 -11
- package/src/useDraggableItem.ts +5 -5
package/dist/module.js
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 {
|