fix(core): make exitable resolve it's value through inheritance (#5244)

This commit is contained in:
Nick Perez 2024-06-18 06:07:14 +02:00 committed by GitHub
parent b2aefc215d
commit 2ef43e9251
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 })
}