primefaces / primeng

The Most Complete Angular UI Component Library
https://primeng.org
Other
10.46k stars 4.6k forks source link

TreeTable: Selection and editable cells do not allow spaces within the input fields #15497

Open kartheininger opened 6 months ago

kartheininger commented 6 months ago

Describe the bug

Using a TreeTable with selection in combination with editable cells does not allow "spaces" within the inputs.

High likely because the selection is somehow done via space.

Environment

Stackblitz, primeng issue template https://github-xofatw.stackblitz.io or editable: https://stackblitz.com/edit/github-xofatw

Reproducer

https://stackblitz.com/edit/github-xofatw?file=src%2Fapp%2Fapp.component.html

Angular version

17.3.7

PrimeNG version

17.16.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

18.16.0

Browser(s)

No response

Steps to reproduce the behavior

https://github-xofatw.stackblitz.io

Try to edit the file size and try to enter a space

Expected behavior

Spaces should be possible ;)

Sinan997 commented 5 months ago

Removing ttSelectableRow will solve your problem.

kartheininger commented 5 months ago

Removing ttSelectableRow will solve your problem.

But then I cannot select the rows anymore by clicking on them? The problem is the combination of selection and inline-editing.

naris commented 1 month ago

I also have this problem and Removing ttSelectableRow is NOT an option as the editable row is for a new entry that the user has to be able to select :/