Skip to content

Commit

Permalink
fix: trigger onError correctly
Browse files Browse the repository at this point in the history
Fixes #461
  • Loading branch information
petyosi committed May 20, 2024
1 parent 1902234 commit 7d0d945
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/plugins/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -871,6 +871,10 @@ export const corePlugin = realmPlugin<{
[addToMarkdownExtension$]: [mdxJsxToMarkdown(), gfmStrikethroughToMarkdown()]
})

r.singletonSub(markdownErrorSignal$, params?.onError)
r.singletonSub(mutableMarkdownSignal$, params?.onChange)
r.singletonSub(onBlur$, params?.onBlur)

// Use the JSX extension to parse HTML
if (!params?.suppressHtmlProcessing) {
r.pubIn({
Expand Down

0 comments on commit 7d0d945

Please sign in to comment.