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

On mobile, the share map copy, refresh, and close buttons aren't working while text in input box is selected #15

Open
RyanCoulsonCA opened this issue Jul 10, 2024 · 2 comments
Labels
in DevOps This issue has been migrated to DevOps

Comments

@RyanCoulsonCA
Copy link
Member

Describe the bug
On mobile, if you click Share map and then try to click the x button next to the input box, it will not work unless you first de-select the text in the input box.

To Reproduce
Steps to reproduce the behavior (TIP: Provide a direct URL using the "Share" button above the map):

  1. Go to the test page on mobile.
  2. Click on Share map.
  3. While the text in the input box is still highlighted, try to press the X button.
  4. I'm not able to press it unless I first de-select the text.

Expected behavior
The button should work without needing to de-select text.

Environment

  • OS: iOS, iPhone 13
  • Browser: Chrome
@RyanCoulsonCA
Copy link
Member Author

Video here https://i.imgur.com/EywjpWz.mp4

@james-rae
Copy link
Member

james-rae commented Jul 10, 2024

I don't know what the CESI source code is, but if its using the oldschool document.execCommand("copy"), might be worth trying to update to modern ClipboardAPI

edit: read issue too fast, this probably isn't the cause if it's "selection" related

@JahidAhmed JahidAhmed added the in DevOps This issue has been migrated to DevOps label Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in DevOps This issue has been migrated to DevOps
Projects
None yet
Development

No branches or pull requests

3 participants