hotfix(popover): manually apply relative style if relative is true (#915)

This commit is contained in:
Eric Liu 2021-11-18 07:28:40 -08:00 committed by GitHub
commit 914f9af3be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,6 +61,7 @@
class:bx--popover--open="{open}" class:bx--popover--open="{open}"
class:bx--popover--relative="{relative}" class:bx--popover--relative="{relative}"
{...$$restProps} {...$$restProps}
style="{$$restProps.style}; {relative && 'position: relative'}"
> >
<div class:bx--popover-contents="{true}"> <div class:bx--popover-contents="{true}">
<slot /> <slot />