You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason I don't consider this a bug is that the component is not able to reach the required HTML element on the page, because of the nesting. This is definitely a limitation in how the component can be used, but, not a bug.
The editor works even if it is used nested.
I found the cause of the problem:
@if (!hide)
{
<BlazoredTextEditor @ref="QuillNative" Placeholder="">
<EditorContent>
@((MarkupString)@NewNewsArticleItem.Text) <!-- gets updated, when the variable is set, but fails to update -->
</EditorContent>
</BlazoredTextEditor>
}
string txt = await QuillNative.GetHTML(); // works fine
hide = !hide;
NewNewsArticleItem.Text = txt; // causes error
The problem can be solved by simply hiding the editor immediately after the HTML has been fetched and before it is then written to the variable.
Describe the bug
If the Quill is used in nested subelements and attempts to use GetHTML it will throw an error.
To Reproduce
Steps to reproduce the behavior:
Unhandled exception rendering component: TypeError: Cannot read properties of null (reading 'removeChild')
Hosting Model (is this issue happening with a certain hosting model?):
The text was updated successfully, but these errors were encountered: