Skip to content

Commit

Permalink
fix: apply #5147 fix to marks and nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
nperez0111 committed Jun 18, 2024
1 parent d122980 commit 9ca6b65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/Mark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,7 @@ export class Mark<Options = any, Storage = any> {
// with different calls of `configure`
const extension = this.extend()

extension.parent = this.parent
extension.options = mergeDeep(this.options as Record<string, any>, options) as Options

extension.storage = callOrReturn(
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/Node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -782,6 +782,7 @@ export class Node<Options = any, Storage = any> {
// with different calls of `configure`
const extension = this.extend()

extension.parent = this.parent
extension.options = mergeDeep(this.options as Record<string, any>, options) as Options

extension.storage = callOrReturn(
Expand Down

0 comments on commit 9ca6b65

Please sign in to comment.