Fix TagsSelectedButton's popup appears in wrong position (#2197)

This commit is contained in:
Hikaru Y 2022-11-21 09:14:01 +09:00 committed by GitHub
parent dc4ac1da66
commit ad4acf90ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,13 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
const removeShortcut = "Backspace";
</script>
<WithFloating {show} placement="top" let:asReference>
<WithFloating
{show}
placement="top"
portalTarget={document.body}
shift={0}
let:asReference
>
<div class="tags-selected-button" use:asReference on:click={() => (show = !show)}>
<IconConstrain>{@html dotsIcon}</IconConstrain>
</div>