diff --git a/chrome/content/zotero/components/virtualized-table.jsx b/chrome/content/zotero/components/virtualized-table.jsx index ac5f3cecd4..0eb5f0e992 100644 --- a/chrome/content/zotero/components/virtualized-table.jsx +++ b/chrome/content/zotero/components/virtualized-table.jsx @@ -1432,7 +1432,7 @@ class VirtualizedTable extends React.Component { // Set aria-activedescendant on table container _setAriaAciveDescendant() { - if (!this.selection.focused) return; + if (!this.selection.count) return; let selected = this._jsWindow?.getElementByIndex(this.selection.focused); if (selected) { selected.closest(".virtualized-table").setAttribute("aria-activedescendant", selected.id);