lemmy-ui/src
matc-pub fdeb9244db
Only conditionally render most of content action dropdown and workaround for tippy warning (#2422)
* Avoid destroyed tippy warning

Tippy doesn't remove its onDocumentPress listener when destroyed.
Instead the listener removes itself after calling hide for hideOnClick.

It doesn't look like there is a way to reliable work around this.

This skips the warning for the first hide call on a destroyed tippy
instance.

Cleanup is only performed after at least ten tippy instances have been
created.

* Hide tooltips for elements that are no longer connected to the document

* Only render action modals after first show

* Only render action dropdown after first show

* Modals fix for quick unmount

Modals use `await import("bootstrap/js/dist/modal")` when being mounted.
This means its possible that the component unmounts before the promise
resolves.

* bind() dropdown toggle click handler

* Modal mixin
2024-04-13 11:15:29 -04:00
..
assets fix: add a default margin bottom to ul and ol in a comment field (#2414) 2024-04-10 08:46:49 -04:00
client Use mixins and decorators for scroll restoration and tippy cleanup (#2415) 2024-04-11 13:18:07 -04:00
server Rework query parsing (#2396) 2024-03-27 09:25:59 -04:00
shared Only conditionally render most of content action dropdown and workaround for tippy warning (#2422) 2024-04-13 11:15:29 -04:00