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

if ContentEditable in contenteditable="true", no trigger onChange #266

Closed
mayuoy opened this issue Jun 6, 2022 · 1 comment
Closed

if ContentEditable in contenteditable="true", no trigger onChange #266

mayuoy opened this issue Jun 6, 2022 · 1 comment

Comments

@mayuoy
Copy link

mayuoy commented Jun 6, 2022

When ContentEditable in contenteditable="true", no trigger onChange。
example:

<div id="root" contenteditable="true">
      ....
      <ContentEditable
        id="e1"
        html={this.state.html1} // innerHTML of the editable div
        disabled={false} // use true to disable edition
        onChange={this.handleChange} // handle innerHTML change
      />
</div>

When making an editor, I need to use ContentEditable nested in contenteditable="true", but onChange cannot be triggered. Is there any solution, thank you。

@lovasoa lovasoa closed this as completed Jun 7, 2022
@lovasoa
Copy link
Owner

lovasoa commented Jun 7, 2022

nested contenteditables are not supported

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