Search JS v1.3.0 - Touchpad clicks don't register on dropdown suggestions
Description:
- Component: MapboxSearchBox from @mapbox/search-js-web v1.3.0
- Issue: Touchpad clicks on dropdown suggestions don't trigger selection
- Environment: Windows laptops with touchpads
- Expected: Touchpad clicks should behave like mouse clicks
- Actual: Only external mouse clicks and keyboard navigation work
Reproduction:
- Attached HTML file demonstrates the issue in isolation
- No external dependencies or complex application code involved
- Bug is reproducible across different browsers
Technical Details:
- Library: @mapbox/search-js-web v1.3.0
- Browser: [Your browser version]
- OS: Windows [Your version]
- Device: [Your laptop model with touchpad]
unable to reproduce with the html attached.
Have you tried running HTML on a Windows laptop? Take a look at this short video of the error: https://youtu.be/rNs9T2gnRn0
The first attempt was to click with the notebook's touchpad. As you can see, the geolocation isn't being read, and nothing happens after closing Dropbox. The second attempt was to click with the mouse. The address is being read correctly and displayed below.
If you still can't reproduce the error, please describe how it looks for you.
I have a teammate who is experiencing this issue. They have a Framework laptop with a touchpad running Windows. As noted in the original description above, the issue only occurs on Windows with touchpad clicks. The issue has not been reproducible for us on Windows with external mouse or on macOS (with touchpad or mouse).
There is a related Stack Overflow thread with similar reports. Quoting one of comments:
Click with mouse - WORKS Arrow Down + enter - WORKS Note book touch pad - DOES NOT WORK
It would be good if the issue can be fixed soon. We are rolling out a new Mapbox-based map and this issue will likely affect many of our users.