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

Keyboard comes up on safari mobile, when clicking on any svg element #1016

Open
gedw99 opened this issue Jan 11, 2025 · 6 comments
Open

Keyboard comes up on safari mobile, when clicking on any svg element #1016

gedw99 opened this issue Jan 11, 2025 · 6 comments

Comments

@gedw99
Copy link

gedw99 commented Jan 11, 2025

wonderful project and gui !

I think this one is a pretty easy fix with a high UX impact.

Describe the bug

keyboard comes up on Safari mobile

To Reproduce
Steps to reproduce the behavior:

  1. Add a few elements.
  2. Click on any one.
  3. Keyboard opens , stopping me working .

Expected behavior

Keyboard editor should not come up.

SVG-Edit environment (IMPORTANT)
V7 master off your GitHub pages ( I presume ).

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [safari]
  • Version : latest public.

Screenshots

image

I think this is an easy fix. Enter hints , I think will do it .

https://www.w3schools.com/tags/att_enterkeyhint.asp

had similar big here: starfederation/datastar#468 and you can see the fix.

the fix is not identical but I think it’s in the right area ..

@gedw99
Copy link
Author

gedw99 commented Jan 11, 2025

@gedw99
Copy link
Author

gedw99 commented Jan 11, 2025

Btw I noticed it does not happen all the time .

could not pin down a deterministic reproduction.

@jfhenon
Copy link
Collaborator

jfhenon commented Jan 20, 2025

I see the issue. You are likely on the right direction to solve the issue but it's difficult to determine the fix without a reproducible scenario.

@gedw99
Copy link
Author

gedw99 commented Jan 20, 2025

Do you have Safari ?

@jfhenon
Copy link
Collaborator

jfhenon commented Jan 20, 2025

yes

@gedw99
Copy link
Author

gedw99 commented Jan 20, 2025

It just did it by dragging a rect and then another react .

It is easy to reproduce off the tip .

https://svgedit.netlify.app/editor/index.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants