Slate: set id in react component

Created on 21 Jan 2020  路  1Comment  路  Source: ianstormtaylor/slate

Do you want to request a _feature_ or report a _bug_?

Allow question

Most helpful comment

Hi @hanselke, the id should not be set here.<Slate/> doesn't map to a DOM element itself but is only a wrapping context. You should set the id on the Editable instead, like <Editable id="my-editor"/>.

If that solves your problem then please close this issue.

>All comments

Hi @hanselke, the id should not be set here.<Slate/> doesn't map to a DOM element itself but is only a wrapping context. You should set the id on the Editable instead, like <Editable id="my-editor"/>.

If that solves your problem then please close this issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gorillatron picture gorillatron  路  3Comments

markolofsen picture markolofsen  路  3Comments

chriserickson picture chriserickson  路  3Comments

chrpeter picture chrpeter  路  3Comments

AlexeiAndreev picture AlexeiAndreev  路  3Comments