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

onChange event is missing #405

Open
dhwind opened this issue Aug 8, 2024 · 2 comments
Open

onChange event is missing #405

dhwind opened this issue Aug 8, 2024 · 2 comments

Comments

@dhwind
Copy link

dhwind commented Aug 8, 2024

Hi, I need to create an email template form with one dropdown, title and a content, which is managed with email editor. Every time I change my title it re-renders the content block to default content. I can handle an onSubmit there is no onChange event handling in the EmailEditorProvider component, where I can manage a state of a content attribute.

image

P.S. I've tried to use onBeforePreview event, but there is no MJML or data object access there, just an HTML.

@m-Ryan
Copy link
Collaborator

m-Ryan commented Aug 13, 2024

Without onChange event, you can listen for changes in values @dhwind

@dhwind
Copy link
Author

dhwind commented Aug 14, 2024

@m-Ryan how exactly can I listen for changes? Is this way described in the documentation?

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

No branches or pull requests

2 participants