skeleton: Popup is not working fine on live as in dev env.
Current Behavior
Popup is working fine on dev env but when it comes in live, that popup disappears when I hover and move around on trigger div. And I’m using popup inside a loop, here is the main code
<script lang="ts">
// skeleton and floating-ui
import { popup } from '@skeletonlabs/skeleton';
import type { PopupSettings } from '@skeletonlabs/skeleton';
import { computePosition, autoUpdate, flip, shift, offset, arrow } from '@floating-ui/dom';
import { storePopup } from '@skeletonlabs/skeleton';
storePopup.set({ computePosition, autoUpdate, flip, shift, offset, arrow });
let popupSettings: PopupSettings = {
event: 'hover', // event
target: 'my_list_popup' // data-popup value
};
</script>
<div>
<div>
{#each my_list as anime}
<div
use:popup={popupSettings}
>
<div>
<!-- trigger code -->
</div>
</div>
<div
data-popup="my_list_popup"
>
<!-- popup code -->
<div class="arrow bg-surface-50" />
</div>
{/each}
</div>
</div>
Reproduction / Steps To Reproduce
No response
Anything else?
Screencast from 2023-04-26 20-34-04.webm
1st one is the live site and 2nd one is the dev env ( localhost ) The problem is with the 1st one ( live )
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (11 by maintainers)
Thank you @Sarenor, for your kind words.
The design was done by @akindworld ( he is a pro ).
We Will definitely showcase the site. But now its not yet quite upto our expectations. We will launch when we finish everything 😃
Just a quick reminder that I will not be reviewing popup related issues until I put my full attention on the popup refactor issue. Everyone is to welcome to continue troubleshooting on their own, but I’m not going to devote time to a temporary solution that may or may not make it into the final update.
Your patience is welcome in the meantime. Just keep noting issues as you find them and I’ll review all in one go when I reach that point.
Ah. Yeah, I remember. We had this issue in the previous version of popups (before we used floating-ui) because we used
Instead of mouseenter and mouseleave. Let me PR that again, should probably be in the next release.
It should look like this on hover, shouldn’t it?
If so: While hovering the background div, it works with the
+page.svelteversion you linked. It just fails when you hover over the buttons, because it left the background div. We had a similar issue half a year ago I think and found a solution. I just can’t remember it. @endigo9740, can you (while I look around and try to remember)?Also sorry for getting back to you so late, I was away over the weekend.
And beautiful site design! You definitely need to share this in the #showcase section in the Discord once you feel like it’s done and ready, it’s beautiful!
Actually I removed that, @baseplate-admin shows a different way. Yea I can provide the code, please wait 😃
@sssuneeth use permalink to highlight from
coreproject-v3-uiDo you still have an example of where you tried it?
Got it: https://github.com/skeletonlabs/skeleton/issues/1323#issuecomment-1511099756
Ok thanks for confirming. I’ll try to circle back to this soon. FYI we do have a notable update coming to the popup feature soon. Please note some popup-related updates will need to be reserved and handled during that:
I’ve included your ticket on the list here just in case.
Hey there!
Yea, but It was an another issue, we fixed that.
Now its different, popup is showing but its kinda like flickering when I hover and move around the child elements. Its fine on my dev env, here is the live site
https://core-project-v3-3nivi0l9q-suneethsunx.vercel.app/ Try hovering in that bottom cards
Hi @sssuneeth, you raised this question on Discord a couple days ago and received a couple responses. I haven’t had a chance to catch up on the conversation, but did this not resolve your issue?
https://discord.com/channels/1003691521280856084/1048010639219642419/threads/1099704955478212628