Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/@react-aria/table/src/TableKeyboardDelegate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class TableKeyboardDelegate<T> extends GridKeyboardDelegate<T, TableColle
}

let firstKey = this.getFirstKey();
if (!firstKey) {
if (firstKey == null) {
return;
}

Expand Down Expand Up @@ -65,7 +65,7 @@ export class TableKeyboardDelegate<T> extends GridKeyboardDelegate<T, TableColle

// only return above row key if not header row
let superKey = super.getKeyAbove(key);
if (superKey && this.collection.getItem(superKey).type !== 'headerrow') {
if (superKey != null && this.collection.getItem(superKey).type !== 'headerrow') {
return superKey;
}

Expand Down Expand Up @@ -152,7 +152,7 @@ export class TableKeyboardDelegate<T> extends GridKeyboardDelegate<T, TableColle

let collection = this.collection;
let key = fromKey ?? this.getFirstKey();
if (!key) {
if (key == null) {
return null;
}

Expand Down