Hello,
Im using `primereact/datatable` with a textarea when editing cells. The problem is that when I hit `enter` instead of a new line it closes the edition.
Is there any way around this?
Thank you very much
Datatable textarea editing new line
Most likely the CellEditor is capturing the bubbled up ENTER key and closing the editor.
You probably need to add an `onKeyUp` to your TextArea and add "if (key ==13) { event.stopPropagatation();}" to stop the event from bubbling up to the Cell Editor.
You probably need to add an `onKeyUp` to your TextArea and add "if (key ==13) { event.stopPropagatation();}" to stop the event from bubbling up to the Cell Editor.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
-
- Information
-
Who is online
Users browsing this forum: No registered users and 1 guest