mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-22 08:36:21 +01:00
Fix .find is not available from QSA
This commit is contained in:
parent
1bb8c0de3e
commit
27e7eef04b
1 changed files with 6 additions and 6 deletions
|
@ -8,9 +8,9 @@ const focusDeck = () => {
|
|||
focusedColumn.focus();
|
||||
} else {
|
||||
// Focus first column within viewport
|
||||
const firstVisibleColumn = columns
|
||||
.querySelectorAll('.deck-container')
|
||||
.find((column) => {
|
||||
const firstVisibleColumn = Array.from(
|
||||
columns.querySelectorAll('.deck-container'),
|
||||
).find((column) => {
|
||||
const columnRect = column.getBoundingClientRect();
|
||||
return columnRect.left >= 0;
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue