Conversation
|
Thanks @Inqnuam , actually I think this is supported already via <script lang="ts">
import { Popover } from 'sveltestrap';
</script>
<a class="btn btn-secondary" id="btnDismissible" tabindex="0">Click me</a>
<Popover placement="right" target="btnDismissible" dismissible>
<div slot="title">
<i>Hello</i> <b>World!</b>
</div>
This Popover dismisses when clicked outside.
</Popover>https://sveltestrap.js.org/?path=/story/components--popover Could you take a look and let me know if this is still needed? |
Hello,
|
|
Ah, okay thanks for the explanation, let me review in next day or two as might be another prop we could use. |
|
Hello @bestguy |
|
I'm facing same issue |
Hides Popover on click outside of itself
Useful when bind:isOpen to make Popover interactive but makes it act like Bootstraps original Popover's behaviour
usage:
<Popover bind:isOpen={isPopoverOpen} hideOnOutClick={true} > ... </Popover>