chore: Remove context menu on links (#6874)
This commit is contained in:
@@ -444,9 +444,9 @@ export default {
|
|||||||
this.hasImageError = true;
|
this.hasImageError = true;
|
||||||
},
|
},
|
||||||
openContextMenu(e) {
|
openContextMenu(e) {
|
||||||
const shouldSkipContextMenu = e.target?.classList.contains(
|
const shouldSkipContextMenu =
|
||||||
'skip-context-menu'
|
e.target?.classList.contains('skip-context-menu') ||
|
||||||
);
|
e.target?.tagName.toLowerCase() === 'a';
|
||||||
if (shouldSkipContextMenu || getSelection().toString()) {
|
if (shouldSkipContextMenu || getSelection().toString()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user