framework7io / framework7

Full featured HTML framework for building iOS & Android apps
http://framework7.io
MIT License
17.97k stars 3.24k forks source link

Picker change its value at random on Safari #4264

Open jmarceli opened 2 months ago

jmarceli commented 2 months ago

Describe the bug

After a few clicks to open and close Picker its values are changing at random without user interaction. It happens more frequently in case of multi-column pickers but it can also appear in single-column case.

To Reproduce

  1. Open Safari browser
  2. Go to official docs page https://framework7.io/docs/picker
  3. Click on the picker from "2 values and 3d-rotate effect" example
  4. Click away to close the picker
  5. Repeat 2. and 3. couple times
  6. See picker value changing without any direct user interaction with the picker

Expected behavior

Picker value should not change without user interaction

Actual Behavior

Picker value is randomly changing

Screenshots

https://github.com/framework7io/framework7/assets/4281333/7a186c21-cb5c-41ff-b859-ed5901fff3b6

Additional context

It doesn't exist in Chromium-based browsers, it is happening only in Safari. I didn't do any tests in Mozilla. Based on my own investigation is seems that change event is triggered together with opening the Picker. This event seems to be never triggered in Chromium browsers.