Browse Source

Accept mode option in tlb-move command (#6519)

fix-resizeobserver-recursion-in-framewrapview
Artur Arseniev 9 months ago
committed by GitHub
parent
commit
3eb71481a3
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      packages/core/src/commands/index.ts

2
packages/core/src/commands/index.ts

@ -151,7 +151,7 @@ export default class CommandsModule extends Module<CommandsConfig & { pStylePref
return em.logWarning('The element is not draggable');
}
const mode = target.get('dmode') || em.get('dmode');
const mode = opts.mode || target.get('dmode') || em.get('dmode');
const hideTlb = () => em.stopDefault(defComOptions);
const altMode = includes(modes, mode);
targets.forEach((trg) => trg.trigger('disable', { fromMove: true }));

Loading…
Cancel
Save