@portabletext/editor 1.42.0 → 1.42.1

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.
@@ -6606,7 +6606,7 @@ const editorMachine = xstate.setup({
6606
6606
  event: event.behaviorEvent
6607
6607
  }, shouldRun));
6608
6608
  for (const actionSet of actionSets)
6609
- behaviorOverwritten = behaviorOverwritten || actionSet.length > 0 && actionSet.some((action) => action.type !== "effect"), withApplyingBehaviorActionSet(event.editor, () => {
6609
+ actionSet.length !== 0 && (behaviorOverwritten = behaviorOverwritten || actionSet.some((action) => action.type !== "effect"), withApplyingBehaviorActionSet(event.editor, () => {
6610
6610
  for (const action of actionSet) {
6611
6611
  if (action.type === "raise") {
6612
6612
  isCustomBehaviorEvent(action.event) ? enqueue.raise({
@@ -6637,7 +6637,7 @@ const editorMachine = xstate.setup({
6637
6637
  break;
6638
6638
  }
6639
6639
  }
6640
- }), event.editor.onChange();
6640
+ }), event.editor.onChange());
6641
6641
  if (behaviorOverwritten) {
6642
6642
  event.nativeEvent?.preventDefault();
6643
6643
  break;