Choices-js / Choices

A vanilla JS customisable select box/text input plugin ⚡️
https://choices-js.github.io/Choices/
MIT License
6.13k stars 605 forks source link

MacOS: List not refreshed when pasting #1177

Open Davidlouiz opened 2 weeks ago

Davidlouiz commented 2 weeks ago

Describe the bug The select list is not refreshed after pasting something into the input. MicrosoftTeams-image (5)

To Reproduce Steps to reproduce the behavior:

  1. Go to https://choices-js.github.io/Choices/
  2. Copy "Berlin" to clipboard.
  3. Type "Toronto", the list is refreshed and Toronto appears.
  4. Cmd-A (select all) and Cmd-V (Past), the list is not refreshed and Berlin don't appears.

Expected behavior I expected the picklist to refresh, like in Windows and Linux.

image

Screenshots MacOS after pasting:: MicrosoftTeams-image (5) Linux after parting: image

Desktop:

Smartphone: No problem

Xon commented 2 weeks ago

To confirm this is occurring under Chrome+linux ? But not MacOS/Windows.

Is it still happening with the just released v11.0.0 ?

Davidlouiz commented 2 weeks ago

I tested on the demo : https://choices-js.github.io/Choices/ . It is choices.js v11.0.0 . The bug also exists on an old version for which I do not have the version number.

Chrome + Linux = No Problem FireFox + Linux = No Problem Edge + Windows = No Problem Chrome + Windows = No Problem Safari + MacOS = Problem Chrome + MacOS = Problem

Xon commented 2 weeks ago

I've reproduced something like what is reported with webkit+linux using playwright browser testing.

I'm doing more debugging.

Xon commented 2 weeks ago

The clipboard e2e tests where rather frustratingly fragile to get working and validating results as expected. The new e2e tests will need to run on actual macos hardware to see if it reproduces the issue instead of just the clipboard API being flaky in the test suite.