adobe / adobe/spectrum-web-components
[Bug]: sp-picker triggers onChange event multiple times for certain devices
- Dominant language
- TypeScript
- Stars
- 1.5k
- Forks
- 262
- Avg merge
- 3d 10h
- Merged PRs (30d)
- 68
Description
### Code of conduct
- [x] I agree to follow this project's code of conduct.
### Impacted component(s)
sp-picker
### Library version
1.7.0
### Expected behavior
Change events for picker should only dispatch once per interaction.
### Actual behavior
Change events are dispatched multiple times on some devices, including Samsung Galaxy Tab S6.
### Screenshots
_No response_
### What browsers are you seeing the problem in?
_No response_
### How can we reproduce this issue?
https://jira.corp.adobe.com/browse/CCEX-227527
On a Samsung Galaxy Tab S6, check the console logs after clicking on a menu item: https://stackblitz.com/edit/vitejs-vite-yfsyjfmi?file=src%2Fmy-element.ts,src%2Findex.css
### Sample code or abstract reproduction which illustrates the problem
_No response_
### Severity
SEV 3
### Logs taken while reproducing problem
_No response_
### Would you like to track this issue in Jira?
- [x] Yes, please tell me the ticket number!
Contributor guide
Research direction
Start with the linked StackBlitz reproduction in src/my-element.ts and inspect the sp-picker change-event behavior while reproducing the click on a Samsung Galaxy Tab S6. Confirm the console currently records multiple changes, then verify that each picker interaction dispatches only one change event.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100