mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
[DevTools] Storage inspector throws an error when use arrow keys
Issue #102
This commit is contained in:
parent
3092fc9902
commit
b1dccb759a
1 changed files with 8 additions and 1 deletions
|
|
@ -463,7 +463,14 @@ TableWidget.prototype = {
|
|||
return;
|
||||
}
|
||||
|
||||
let selectedCell = this.tbody.querySelector(".theme-selected");
|
||||
// We need to get the first *visible* selected cell. Some columns are hidden
|
||||
// e.g. because they contain a unique compound key for cookies that is never
|
||||
// displayed in the UI. To do this we get all selected cells and filter out
|
||||
// any that are hidden.
|
||||
let selectedCells = [...this.tbody.querySelectorAll(".theme-selected")]
|
||||
.filter(cell => cell.clientWidth > 0);
|
||||
// Select the first visible selected cell.
|
||||
let selectedCell = selectedCells[0];
|
||||
if (!selectedCell) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue