Explorar o código

fixed next element error when pressing tab

Gildas %!s(int64=5) %!d(string=hai) anos
pai
achega
d5502f8ece
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      extension/ui/content/content-ui-editor-web.js

+ 1 - 0
extension/ui/content/content-ui-editor-web.js

@@ -1204,6 +1204,7 @@ table {
 					if (nextElement) {
 						let pathIndex = cuttingPathIndex + delta;
 						while (
+							nextElement &&
 							(delta == 1 &&
 								element.getBoundingClientRect().width >= nextElement.getBoundingClientRect().width &&
 								element.getBoundingClientRect().height >= nextElement.getBoundingClientRect().height) ||