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

Copy content of the list #895

Open
Caro-Steinborn opened this issue Oct 23, 2024 · 1 comment · May be fixed by #1113
Open

Copy content of the list #895

Caro-Steinborn opened this issue Oct 23, 2024 · 1 comment · May be fixed by #1113
Assignees
Labels
enhancement New feature or request

Comments

@Caro-Steinborn
Copy link

It should be possible to copy the content of the list by selecting the text. This is currently not possible because the GridList is used by Aria.

@Caro-Steinborn Caro-Steinborn added the enhancement New feature or request label Oct 23, 2024
@mfal mfal self-assigned this Dec 6, 2024
@mfal mfal linked a pull request Jan 21, 2025 that will close this issue
@mfal
Copy link
Member

mfal commented Jan 21, 2025

The problem is that when pressing the mouse / touch device Arias onPress handler takes over the control for the whole list item. It is possible to either

  1. completely prevent the propagation of the mouse / touch event for certain components inside the list item
  2. or prevent it only if some "selection mode" is enabled – i.e. by holding down the Alt-key

The problem with 1. is, that users are used to click "somewhere" on the list item to trigger the list action and they might be confused if nothing happens if they clicked on text.

The problem with 2. is, that users need to know that this mechanism exists.

In #1113 you can find an implementation (see Storybook).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants