Describe the bug
I have a markdown Element and try to display it conditionally. If the condition changes, the element will not hide and sometimes there are multiple elements.
If you switch visible from false to true and the markdown editor will be loaded.. After turning visible back to false, the editor is still visible... Turning it to true again, a second (third, ...) markdown editor will appear.
Expected behavior
It would be great, if the Element behaves like every other element. But I understand that there are several new html-elements generated by using <Blazorise.Markdown.Markdown />.. So maybe this should not work this way.
But it seems to not be relevant for the Markdown-Extension (= the value is not passed through to the editor component). The component is visible from the start and never hides.
Workaround
As a workaround I use a container Element like
Describe the bug I have a markdown Element and try to display it conditionally. If the condition changes, the element will not hide and sometimes there are multiple elements.
To Reproduce use
If you switch
visible
fromfalse
totrue
and the markdown editor will be loaded.. After turningvisible
back tofalse
, the editor is still visible... Turning it totrue
again, a second (third, ...) markdown editor will appear.Expected behavior It would be great, if the Element behaves like every other element. But I understand that there are several new html-elements generated by using
<Blazorise.Markdown.Markdown />
.. So maybe this should not work this way.I tried it with
Display
as wellBut it seems to not be relevant for the Markdown-Extension (= the value is not passed through to the editor component). The component is visible from the start and never hides.
Workaround As a workaround I use a container Element like