Skip to content

ui5-table: cannot select text from table cell #1163

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

Closed
tamiarah opened this issue Jan 29, 2020 · 3 comments
Closed

ui5-table: cannot select text from table cell #1163

tamiarah opened this issue Jan 29, 2020 · 3 comments
Assignees

Comments

@tamiarah
Copy link

Describe the bug
It is not possible to select the content of a table cell in case you want to copy the text from this cell. It is only working for the column headers but not in the rows. It is working in your example here: https://sap.github.io/ui5-webcomponents/playground/components/Table/
However, it is not working now, when implementing a table and then trying to copy the cell content.

To reproduce
Steps to reproduce the behavior:

  1. See attached link and try to copy "test" from the table row.

Isolated example
https://codesandbox.io/s/ui5-webcomponents-0kt3c?fontsize=14&hidenavigation=1&theme=dark

Expected behavior
It should be possible to select the content, that you can copy it.

Context

  • UI5 Web Components version: 1.0.0-rc.5
  • OS/Platform: Mac OS

Affected components
ui5-table (ui5-table-cell, ui5-table-row)

Thanks!
Christina

@ilhan007
Copy link
Member

Hello @tamiarah

Thanks for reporting.

If you wrap the text nodes in spans - the text would be selectable.
We still don't know why it's not working your way.

 <ui5-table-cell><span>test</span></ui5-table-cell>

@ilhan007 ilhan007 self-assigned this Jan 29, 2020
@tamiarah
Copy link
Author

Hi @ilhan007

Thanks for your fast response and the workaround with the span!

@ilhan007
Copy link
Member

Unfortunately,
I could not find the root cause, but as there is fine workaround I will close the issue

I hope it is fine for you.

Best,
ilhan

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

No branches or pull requests

2 participants