Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detached preview rendering #471

Merged
merged 2 commits into from
Aug 20, 2022

Conversation

LevitatingOrange
Copy link
Contributor

This is a very simple PR to allow more flexibility when rendering the preview. At the moment the innerHTML of the preview node will be overwritten with the result from previewRender with every showing of the preview. If you want to control this node via external means, for example with vdom diffing frameworks like Mithril.js or React, this gets in your way. With this change, the innerHtml of the preview node will only be overwritten if the result of previewRender is not null. I updated the type definitions and documentation accordingly.

@Ionaru Ionaru merged commit b4c55d9 into Ionaru:master Aug 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants