Closed godanny86 closed 2 months ago
Can we tag this to iOS or do you see this is happening in Android also?
@Rajdeepc I see the double change event issue in Android with Samsung devices. With the Samsung device it may be conflated with this issue: https://github.com/adobe/spectrum-web-components/issues/4460 where the ActionMenu does not pop into a tray. For other Android devices like Google Pixel I don't see the double change event and the ActionMenu opens in a tray as expected.
Samsung Galaxy (reproduces the issue):
https://github.com/adobe/spectrum-web-components/assets/8974514/38e56f5a-c763-4cd6-9230-c7d8e5022ff6
Google Pixel (working as expected):
https://github.com/adobe/spectrum-web-components/assets/8974514/6f64eb00-6ff7-475b-bf45-0897daaf69e1
Code of conduct
Impacted component(s)
ActionMenu, Tray
Expected behavior
When using a mobile device the ActionMenu opens in a tray. When a user selects a menu item in the tray a single
change
event should be dispatched that reflects the selection.Actual behavior
When using a mobile device the ActionMenu opens in a tray. When a user selects a menu item in the tray we are observing multiple
change
events being dispatched. The multiple change events is intermittent. The following sandbox: https://studio.webcomponents.dev/edit/JciavEjTy2VT17fMD1Rp/src/index.ts?p=stories can reliably reproduce the behavior on iOS touch devices and simulator. The behavior is not reproduced using a simple browser emulator.Screenshots
https://github.com/adobe/spectrum-web-components/assets/8974514/6efd5340-36fc-40c9-87ab-fae153889d11
What browsers are you seeing the problem in?
Safari
How can we reproduce this issue?
Sample code that illustrates the problem
Logs taken while reproducing problem
No response