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

RichTextArea components conflicts with each other #908

Open
deanex opened this issue Dec 30, 2021 · 0 comments
Open

RichTextArea components conflicts with each other #908

deanex opened this issue Dec 30, 2021 · 0 comments

Comments

@deanex
Copy link
Contributor

deanex commented Dec 30, 2021

Rendering multiple RichTextArea components, even on different opened tabs, lead to error:
image.png

Dev notes

Every time same id is used for custom quill toolbar

export const modules = {
  toolbar: {
    container: "#toolbar",
  },
  history: {
    delay: 500,
    maxStack: 100,
    userOnly: true
  }
};

export const RichTextAreaToolbar = () =>
{
  const intl = useIntl();
  return (
    <div id="toolbar">
    <span className="ql-formats">
      <select className="ql-header" defaultValue="5">
// ...
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

1 participant