Explorar el Código

prevent selection of the document elemnt

Gildas hace 5 años
padre
commit
91c3dd55df
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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]);