@react-aria/dnd 3.1.1-nightly.3787 → 3.1.1-nightly.3796

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
@@ -3116,6 +3116,9 @@ function $4b52e4eff84e5217$export$f4e2f423c21f7b04(props, state, ref) {
3116
3116
  // is some indication that items were added.
3117
3117
  if (state.selectionManager.focusedKey === droppingState.current.focusedKey) {
3118
3118
  let first = newKeys.keys().next().value;
3119
+ let item = state.collection.getItem(first);
3120
+ // If this is a cell, focus the parent row.
3121
+ if ((item === null || item === void 0 ? void 0 : item.type) === "cell") first = item.parentKey;
3119
3122
  state.selectionManager.setFocusedKey(first);
3120
3123
  if (state.selectionManager.selectionMode === "none") (0, $fP8tg$setInteractionModality)("keyboard");
3121
3124
  }
package/dist/main.js CHANGED
@@ -3135,6 +3135,9 @@ function $7f93a158ac20b90a$export$f4e2f423c21f7b04(props, state, ref) {
3135
3135
  // is some indication that items were added.
3136
3136
  if (state.selectionManager.focusedKey === droppingState.current.focusedKey) {
3137
3137
  let first = newKeys.keys().next().value;
3138
+ let item = state.collection.getItem(first);
3139
+ // If this is a cell, focus the parent row.
3140
+ if ((item === null || item === void 0 ? void 0 : item.type) === "cell") first = item.parentKey;
3138
3141
  state.selectionManager.setFocusedKey(first);
3139
3142
  if (state.selectionManager.selectionMode === "none") (0, $4vY0V$reactariainteractions.setInteractionModality)("keyboard");
3140
3143
  }