Browse Source

fixed next element error when pressing tab

Gildas 5 năm trước cách đây
mục cha
commit
d5502f8ece
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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) ||