TurboTable. OnEditComplete invoke only if has Changes (like Blur event)
I'm submitting a ... (check one with "x")
[ ] bug report => Search github for a similar issue or PR before submitting
[ X] 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
Current behavior Currently OnEditComplete event is executed when I press Enter or Tab, even though I have not modified the value of the cell.
Expected behavior Invoke OnEditComplete event only when the user has modified the value of the cell (like Blur event)
Minimal reproduction of the problem with instructions Create a TurboTable with OnEditComplete event defined. Put a breakpoint inside the event, verify that when entering edit mode in a cell and press Enter or Tab it is launched even if the value has not changed.
What is the motivation / use case for changing the behavior? I have a form with a TurboTable. When OnEditComplete is invoked, I consider that the document has changes. I currently have no way of knowing that the value has changed.
Please tell us about your environment: Windows 10
Angular version: 2.0.X 5.0.0
PrimeNG version: 2.0.X 5.2.5
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 ]
Language: [all | TypeScript X.X | ES6/7 | ES5]
Node (for AoT issues): node --version = 5.2.0
You can bind to (change) of your editor component to listen to change events. onEditComplete means cell is closed.