Преглед изворни кода

prevent selection of the document elemnt

Gildas пре 5 година
родитељ
комит
91c3dd55df
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      extension/ui/content/content-ui-editor-web.js

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

@@ -1236,7 +1236,7 @@ table {
 							pathIndex += delta;
 							nextElement = cuttingPath[pathIndex];
 						}
-						if (nextElement && nextElement.classList && nextElement != document.body) {
+						if (nextElement && nextElement.classList && nextElement != document.body && nextElement != document.documentElement) {
 							unhighlightCutElement();
 							cuttingPathIndex = pathIndex;
 							highlightCutElement(cuttingPath[cuttingPathIndex]);