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

Users are experiencing difficulties with pasting into Input and Textarea #1084

Open
haavarop opened this issue Apr 10, 2024 · 2 comments
Open
Labels
Beginner friendly 🐛 Bug Something isn't working 🔨 React Has to do with the React implementation

Comments

@haavarop
Copy link

What's wrong?

The way Labels are placed in the Inputs and Textarea-components when there is no text in the component, make it so if the user right click to for instance paste they are unable to

How to reproduce?

In an empty Textarea (for example https://spor.vy.no/components/textarea) or Input (for example https://www.vy.no/) without inputting text into the inputs, right-click where the label is placed. You should be presented with options as if you marked the text, rather than right clicking in elsewhere in the component.

What did you expect to happen, and what happened instead?

When right-clicking on an area of an Textarea og Input the label should be ignored the behaviour should be similar to if the users clicked elsewhere in the input.

Screenshots

image image
@haavarop haavarop added 🐛 Bug Something isn't working 🔨 React Has to do with the React implementation labels Apr 10, 2024
@haavarop
Copy link
Author

haavarop commented Apr 10, 2024

Can adding pointer-events: none on the labels be sufficient to solve this?

@johnolos
Copy link
Contributor

@haavarop Thanks for reporting. Do you have time to look into this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Beginner friendly 🐛 Bug Something isn't working 🔨 React Has to do with the React implementation
Projects
None yet
Development

No branches or pull requests

3 participants