Shubham Singh
03/11/2025, 2:42 PMAdvancedPopover
component, what's the difference between OpenClosePopupStrategy
and KeepPopupOpenStrategy
?S.
03/11/2025, 2:45 PMShubham Singh
03/11/2025, 2:45 PMS.
03/11/2025, 2:52 PMS.
03/11/2025, 2:53 PMShubham Singh
03/11/2025, 2:53 PMopenClosePopupStrategy.isOpen = false
would close the popup even if my mouse is over the element
But apparently it does not
It only works when the mouse is not over the element
I am using the .manual()
strategyS.
03/11/2025, 2:54 PMKeepPopupOpenStrategy
KdocShubham Singh
03/11/2025, 2:56 PMS.
03/11/2025, 2:57 PMShubham Singh
03/11/2025, 2:58 PMS.
03/11/2025, 2:58 PMKeepPopupOpenStrategy.combine(
KeepPopupOpenStrategy.onHover(),
popupStrategy // manual control
)
S.
03/11/2025, 2:59 PMS.
03/11/2025, 2:59 PMShubham Singh
03/11/2025, 2:59 PMDavid Herman
03/11/2025, 3:32 PMDavid Herman
03/11/2025, 3:33 PMDavid Herman
03/11/2025, 3:37 PMKeepPopupOpenStrategy
- the default is for the tooltip to go away if the element the popup is attached to loses mouse hover or keyboard focus.Shubham Singh
03/11/2025, 3:37 PMyou may already be doing this but make sure you are `remember`ing your strategyYes David! I'm already `remember`ing it ✅ I actually ended up leaving the behaviour to be default, where it shows the popup while the focus is alive. Seems an okay-ish trade-off for now. But I'll keep exploring the manual strategy too.
David Herman
03/11/2025, 3:37 PMDavid Herman
03/11/2025, 3:38 PMgit clone <https://github.com/varabyte/kobweb>
, cd kobweb/playground/site
, and kobweb run
. In the resulting site, go to the Widgets tab and look at the popup section.David Herman
03/11/2025, 3:40 PMAttack
card you get a bonus), and when you moused over that link, a tooltip showing the secondary card would show up. It would stay up as long as you had your mouse over the original card, that floating card, or if neither, it would start a countdown that would take about, I forget, a second? Before hiding it.David Herman
03/11/2025, 3:41 PMKeepPopupOpenStrategy
for.