Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS: List not refreshed when pasting #1177

Open
Davidlouiz opened this issue Aug 27, 2024 · 4 comments
Open

MacOS: List not refreshed when pasting #1177

Davidlouiz opened this issue Aug 27, 2024 · 4 comments
Labels

Comments

@Davidlouiz
Copy link

Davidlouiz commented Aug 27, 2024

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:
0. Go to https://choices-js.github.io/Choices/

  1. Copy "Berlin" to clipboard.
  2. Type "Toronto", the list is refreshed and Toronto appears.
  3. 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:

  • OS: MacOS
  • Browser: Chrome and Safari
  • Version: Chrome 128.0.6613.85 (Official Buid) (x86_64) and Safari 17.4.1 (17618.1.15.1118, 17618))

Smartphone:
No problem

@Davidlouiz Davidlouiz added the bug label Aug 27, 2024
@Xon
Copy link
Collaborator

Xon commented Aug 27, 2024

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

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

@Davidlouiz
Copy link
Author

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 Xon changed the title List not refreshed when pasting MacOS: List not refreshed when pasting Aug 28, 2024
@Xon
Copy link
Collaborator

Xon commented Aug 28, 2024

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

I'm doing more debugging.

@Xon Xon linked a pull request Aug 28, 2024 that will close this issue
@Xon
Copy link
Collaborator

Xon commented Aug 28, 2024

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.

@Xon Xon removed a link to a pull request Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants
@Xon @Davidlouiz and others