-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
pSelectableRow blocks typing space on inputs in p-table #9893
Comments
I have reviewed the pSelectableRow directive. There is an event listener that cause this.
can someone describe, why such a listener is needed? |
a temporary fix can be the using (keydown.space)="$event.stopPropagation();" on text inputs. but this is not feasible for inputs in 3rd party components (e.g: filter input on p-dropdown) |
for some one looking for quick way to fix this and add space to inputs u can override this with this snippet
|
Ran into this issue. Had to implement workaround provided above. Please reopen the issue. |
can confirm this is a big issue! setting [pSelectableRow]="rowData" and [pSelectableRowIndex]="rowIndex" also gives that faulty behavior |
I too, have the same issue I used parth181195 fix for now "primeng": "^16.9.1", |
This also seems to be an issue with a text area inside a Tree caused by this commit #14123. Looks like arrow keys, space, numpad enter and enter will all trigger a prevent default that will all break nested input/textarea elements. |
This doesn't work when you type a space between characters, it keeps adding space at the end. |
I'm submitting a ... (check one with "x")
Current behavior
a row with pSelectableRow (<tr [pSelectableRow]="...">) blocks inputs from typing whitespace.
Expected behavior
We should be able to type whitespace in the inputs.
Minimal reproduction of the problem with instructions
https://codesandbox.io/s/lucid-shirley-53rlx?file=/src/app/app.component.html:233-247
The textarea will ignore the whitespace typed by the keyboard.
The text was updated successfully, but these errors were encountered: