mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-23 17:16:26 +01:00
Fix focus not focusing into the status page
This commit is contained in:
parent
f15b859971
commit
b12b96b8e1
1 changed files with 2 additions and 0 deletions
|
@ -151,6 +151,8 @@ function App() {
|
|||
// Focus first column
|
||||
columns.querySelector('.deck-container')?.focus?.();
|
||||
} else {
|
||||
const backDrop = document.querySelector('.deck-backdrop');
|
||||
if (backDrop) return;
|
||||
// Focus last deck
|
||||
const pages = document.querySelectorAll('.deck-container');
|
||||
const page = pages[pages.length - 1]; // last one
|
||||
|
|
Loading…
Reference in a new issue