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

Clicking text field border moves cursor to the start #8853

Closed
AlessioGr opened this issue Oct 24, 2024 · 2 comments
Closed

Clicking text field border moves cursor to the start #8853

AlessioGr opened this issue Oct 24, 2024 · 2 comments
Labels
created-by: Payload team wontfix This will not be worked on

Comments

@AlessioGr
Copy link
Member

AlessioGr commented Oct 24, 2024

CleanShot.2024-10-24.at.08.46.20.mp4

Click in middle of text field => cursor is at the end of the text.

Click close to the border of text field => cursor is at the start of the text. Expected: cursor is at the end of the text

@AlessioGr AlessioGr added status: needs-triage Possible bug which hasn't been reproduced yet v3 labels Oct 24, 2024
@paulpopus paulpopus added the wontfix This will not be worked on label Oct 24, 2024
@paulpopus
Copy link
Contributor

I don't think this is a problem as this is default browser behaviour.

In chrome when clicking on the field label, it puts the cursor to the end of the text.
In firefox it puts selects the entire text in the input.

Clicking on the top border, will place the cursor to the beginning of the input for both browsers.
Clicking on the bottom border will place the cursor to the end of the input instead.

My guess is that this happens due to document flow and we shouldn't mess with default behaviour here.
For what it's worth I tested different sizing methods between changing height to auto and removing padding and the behaviour remains consistent so I'll close this issue as won't fix

@github-actions github-actions bot removed the status: needs-triage Possible bug which hasn't been reproduced yet label Oct 24, 2024
Copy link
Contributor

This issue has been automatically locked.
Please open a new issue if this issue persists with any additional detail.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
created-by: Payload team wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants