Procházet zdrojové kódy

prevent selection of the document elemnt

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