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

[TurboTable] / p-table Cannot copy text from a cell in single/multiple selectionMode #4933

Closed
jw61 opened this issue Jan 23, 2018 · 0 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@jw61
Copy link

jw61 commented Jan 23, 2018

There is no guarantee in receiving a response in GitHub Issue Tracker, If you'd like to secure our response, you may consider PrimeNG PRO Support where support is provided within 4 business hours

I'm submitting a ... (check one with "x")

[*] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Plunkr Case (Bug Reports)
https://www.primefaces.org/primeng/#/table/selection

Current behavior
Unlike p-dataTable, in a p-table with either selectionMode="single" or selectionMode="multiple", it is not possible to select the text in a cell to copy it. Eg. Try to copy text from on of the cells in the table on https://www.primefaces.org/primeng/#/table/selection . The moment you finished highlighting the text you want to copy, the highlight is removed and no Copy option is available in the context menu.

By contrast, in p-dataTable at https://www.primefaces.org/primeng/#/datatable/selection, it is possible to select and copy the contents of a cell.

For some applications it is important for the user to be able to copy values from the displayed data for the values to be used elsewhere.

Expected behavior
After selecting text within a cell, the text should remain selected/highlighted, and a right-click should give a context menu with a copy option.

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?
For some applications it is important for the user to be able to copy values from the displayed data for the values to be used elsewhere. After all, who doesn't love Copy and Paste?

Please tell us about your environment:
Angular CLI: 1.6.3
Node: 8.9.4
OS: win32 x64
Angular: 5.2.1

  • Angular version: 5.2.1

  • PrimeNG version: 5.2.0-rc.1

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
    Chrome: 63

  • Language: [all | TypeScript X.X | ES6/7 | ES5]
    Typescript 2.4.2

  • Node (for AoT issues): node --version =
    Node: 8.9.4

@cagataycivici cagataycivici self-assigned this Jan 23, 2018
@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Jan 23, 2018
@cagataycivici cagataycivici added this to the 5.2.0-RC2 milestone Jan 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

2 participants