Skip to content

Commit

Permalink
fix(core): make exitable resolve it's value through inheritance (#5244)
Browse files Browse the repository at this point in the history
  • Loading branch information
nperez0111 authored Jun 18, 2024
1 parent b2aefc2 commit 2ef43e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/ExtensionManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export class ExtensionManager {
let defaultBindings: Record<string, () => boolean> = {}

// bind exit handling
if (extension.type === 'mark' && extension.config.exitable) {
if (extension.type === 'mark' && getExtensionField<AnyConfig['exitable']>(extension, 'exitable', context)) {
defaultBindings.ArrowRight = () => Mark.handleExit({ editor, mark: extension as Mark })
}

Expand Down

0 comments on commit 2ef43e9

Please sign in to comment.