Procházet zdrojové kódy

fixed next element error when pressing tab

Gildas před 5 roky
rodič
revize
d5502f8ece
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  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) ||