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
When using <markdown> with clipboard in Content projection (select attribute), the copy button is only placed in right position the first time. Once the content is removed/readded, the button will be placed just below markdown element.
Partial workaround:
The button can be forced to be re-rendered again to correct position via re-renderthis.markdownService.reload();, but that does not remove the previous instance of the button. Perhaps that could be fixed by calling destroy() on the existing componentRef when re-rendering. The componentRef is created in:
When using
<markdown>
withclipboard
in Content projection (select
attribute), the copy button is only placed in right position the first time. Once the content is removed/readded, the button will be placed just below markdown element.Partial workaround:
The button can be forced to be re-rendered again to correct position via re-render
this.markdownService.reload();
, but that does not remove the previous instance of the button. Perhaps that could be fixed by calling destroy() on the existing componentRef when re-rendering. The componentRef is created in:ngx-markdown/lib/src/markdown.service.ts
Line 417 in c8d157f
Here is a repro using modified official stackblitz:
The text was updated successfully, but these errors were encountered: