Primeng: Table - onEditComplete should be also called on blur

Created on 29 Jan 2018  路  2Comments  路  Source: primefaces/primeng

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
Current onEditComplete is only getting called if user press enter key.

Expected behavior
If by any means user completes the editing this event should be fired. On blur of the element can be a good event to fire onEditComplete. Current if I enter some value in editable field and if I dont press the enter key, this event is not getting fired.

Please tell us about your environment:
Windows

  • Angular version: 2.0.X
    Angular 5
    PrimeNG 5.2.0-rc.2

Most helpful comment

Thanks, @cagataycivici for the information.
However, it is a lake of documentation, people are expecting onEditComplete should be triggered once edit completed.

See below docs image for the reference.

image

image

Thanks

All 2 comments

Since you have full control over the editor template, you can decide to call complete on blur. We rather not do it, as there may have multiple editors inside a single cell where calling complete on blur may not be desired behavior for some users.

Thanks, @cagataycivici for the information.
However, it is a lake of documentation, people are expecting onEditComplete should be triggered once edit completed.

See below docs image for the reference.

image

image

Thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

miresk picture miresk  路  3Comments

gatapia picture gatapia  路  3Comments

just-paja picture just-paja  路  3Comments

garethlewis picture garethlewis  路  3Comments

Faigjaz picture Faigjaz  路  3Comments