Fix docs context menu in Firefox
This commit is contained in:
1 parent
b4862427ec
commit
25272cf615
1 file changed
+2
-2
@@ -293,7 +293,7 @@ function newSuperalgosDocsContextMenu() {
|
||||
We need to locate the parent node that it is a Paragraph,
|
||||
otherwise we could end up in an inner html element.
|
||||
*/
|
||||
let paragraphNode = selection.baseNode
|
||||
let paragraphNode = selection.anchorNode
|
||||
|
||||
if (paragraphNode.id !== undefined && paragraphNode.parentNode.className === "docs-tooltip") {
|
||||
return false
|
||||
@@ -457,4 +457,4 @@ function newSuperalgosDocsContextMenu() {
|
||||
return true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user