Browse Source

Prevent comments from being processed when selected in the layers tree.

pull/5719/head
Brian Ernesto 3 years ago
parent
commit
877ec194c6
  1. 6
      src/commands/view/ShowOffset.ts

6
src/commands/view/ShowOffset.ts

@ -18,9 +18,9 @@ export default {
const zoom = this.em.getZoomDecimal();
const el = opt.el as HTMLElement | undefined;
// if (!(el instanceof HTMLElement)) {
// return;
// }
if (!(el instanceof HTMLElement)) {
return;
}
if (!config.showOffsets || !el || isTextNode(el) || (!config.showOffsetsSelected && state == 'Fixed')) {
editor.stopCommand(`${this.id}`, opts);

Loading…
Cancel
Save