fix bugs and position on safari
This commit is contained in:
@@ -794,7 +794,7 @@ export const setLinkURLMethod = function (val) {
|
||||
if (elem.tagName !== 'a') {
|
||||
// See if parent is an anchor
|
||||
const parentsA = getParents(elem.parentNode, 'a');
|
||||
if (parentsA.length) {
|
||||
if (parentsA?.length) {
|
||||
elem = parentsA[0];
|
||||
} else {
|
||||
return;
|
||||
|
||||
@@ -875,7 +875,7 @@ export const ungroupSelectedElement = function () {
|
||||
return;
|
||||
}
|
||||
const parentsA = getParents(g.parentNode, 'a');
|
||||
if (parentsA.length) {
|
||||
if (parentsA?.length) {
|
||||
g = parentsA[0];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user