@tldraw/editor 5.3.0-canary.3c03dcdf8fa0 → 5.3.0-canary.3cf7ba2fcdbb

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -379,7 +379,7 @@ var import_uniq = require("./lib/utils/uniq");
379
379
  var import_defaultThemes2 = require("./lib/editor/managers/ThemeManager/defaultThemes");
380
380
  (0, import_utils.registerTldrawLibraryVersion)(
381
381
  "@tldraw/editor",
382
- "5.3.0-canary.3c03dcdf8fa0",
382
+ "5.3.0-canary.3cf7ba2fcdbb",
383
383
  "cjs"
384
384
  );
385
385
  //# sourceMappingURL=index.js.map
@@ -492,6 +492,9 @@ class Editor extends import_eventemitter3.default {
492
492
  },
493
493
  instance_page_state: {
494
494
  afterChange: (prev, next) => {
495
+ if (prev?.focusedGroupId !== next?.focusedGroupId) {
496
+ this.cancelDoubleClick();
497
+ }
495
498
  if (prev?.selectedShapeIds !== next?.selectedShapeIds) {
496
499
  const filtered = next.selectedShapeIds.filter((id) => {
497
500
  let parentId = this.getShape(id)?.parentId;