[Bug]: sp-picker flicker issue when the sp-picker is rendered inside sp-popover which is triggered on sp-action-button click
Code of conduct
- [x] I agree to follow this project's code of conduct.
Impacted component(s)
sp-picker, sp-popover, sp-action-button
Expected behavior
Upon clicking on the 'sp-action-button', the popover should be triggered with 2 sp-picker elements inside it.
Actual behavior
Upon click on sp-action-button, the popover gets triggered which contains 2 sp-picker elements inside it but it flickers in 2 ways:
- sometimes the popover which assigned 'top-end' placement keeps on moving to different positions while it is in open state.
- sometimes when the popover is open, the sp-pickers elements flickers, they appear and suddenly disappears.
This issue observed in Safari browser in Mac and all browsers in Windows.
Screenshots
No response
What browsers are you seeing the problem in?
Safari
How can we reproduce this issue?
- Open Safari in Mac.
- Go to 'https://stage.projectx.corp.adobe.com/'
- Click on 'Profile avatar'
- Select 'Features'
- Select 'hzwebcam-video-recording' and enable it.
- Click on Save
- Once page is reloaded, click on Document tab and then click on Document say presentation (except Drawing / Webpage).
- Once the editor page is loaded, add any image on the documents's current page.
- Click on 'Media' in the left navigation.
- Click on 'Video' sub tab.
- Click on 'Record yourself' button.
- A dialog opens.
- Now notice a 'Settings' icon, click on it.
- A popover opens which has 2 dropdowns for Camera & mic in it.
- Play with it and you'll notice that the sp-picker dropdowns flicker and disappear / re-appear.
- Sometime the popover changes its placement.
- Note this does not happen on all machines.
Sample code or abstract reproduction which illustrates the problem
No response
Severity
SEV 1
Logs taken while reproducing problem
N/A because inspecting suggests that the picker element is still present in the DOM when it disappears.
@shruti-nath Can you reproduce this in webcomponents.dev so that we can abstract the issue?
@Rajdeepc
@shruti-nath Can you reproduce this in webcomponents.dev so that we can abstract the issue?
@najikahalsema : The exact issue is getting reproduced here. Try this out in Safari - https://studio.webcomponents.dev/edit/bAxHQqSHMHh9PkI2hnUQ/src/index.ts?p=stories
PFA both the recordings (Safari browser) https://github.com/user-attachments/assets/bba4e03f-ed37-4030-8803-b46607945620
https://github.com/user-attachments/assets/661f1d12-0cf5-4159-bb55-e907b3dd0712
SWC-784
@shruti-nath Please update to the latest 1.7.0 and let me know if you are still seeing this issue. Tested in Safari 18.5 and it works fine. Attached video for reference.
Link to demo: https://stackblitz.com/edit/vitejs-vite-qykge9l4?file=src%2Fmy-element.ts
https://github.com/user-attachments/assets/089314ae-2251-4400-8135-5235a05fba1c
Closing this ticket since it is verified in the latest release. Feel free to open it if you still see the issue happening on your end.