primeng icon indicating copy to clipboard operation
primeng copied to clipboard

TreeTable onEditComplete not triggered

Open zhq3k opened this issue 6 years ago • 11 comments

[x ] bug report => Search github for a similar issue or PR before submitting [ ] 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


Using TreeTable and edit the binding data, when input the value on one cell and using mouse click to another cell, onEditComplete event not triggered.

**Current behavior**
onEditComplete event not triggered.

**Expected behavior**
onEditComplete will be triggered when click to another cell




**Please tell us about your environment:**

Angular version: 10

PrimeNG version: 10.0.0

Browser: Chrome 85

Language: TypeScript 3.9

zhq3k avatar Sep 23 '20 08:09 zhq3k

any fix to this ??

faheemworkspace avatar Oct 20 '20 21:10 faheemworkspace

Comparing the code between "treeTable" and "table" regarding editability, I see the code in "table" is a little bit more sophisticated in handling editability. I think some fixes/features still need to be ported from "table" to "treetable".

  • This particular problem seems to be situated in the bindDocumentListener
  • I see also differences regarding tabbing that probably allow to close an invalid cell that is being edited.

Krustie101 avatar Oct 29 '20 08:10 Krustie101

I think this is the same issue than https://github.com/primefaces/primeng/issues/9113

I got the same issue, hope it will be fixed soon :D

InfoCharlesM avatar Dec 30 '20 11:12 InfoCharlesM

@yigitfindikli

Is the review still planned ?

I can't use prime-tree-tables because of this and the bug on p-calendars inside tables.

-> On this stackblitz you can see in the console that when you enter a cell "onEditInit" is fired, but when you click out, "onEditComplete" isn't fired

InfoCharlesM avatar Feb 23 '21 09:02 InfoCharlesM

I'm still facing the issue on this stackblitz @yigitfindikli is it normal ? https://stackblitz.com/edit/primeng-treetableedit-demo-c2brq1?file=src/app/app.component.html

When you open the stackblitz's console and click on a cell then on another you only have two "Init" and no "Complete" between

InfoCharlesM avatar Mar 16 '21 08:03 InfoCharlesM

@yigitfindikli could you please give me an answer ?

InfoCharlesM avatar Apr 20 '21 08:04 InfoCharlesM

@InfoCharlesM You need to use v11.3.1 or higher.

yigitfindikli avatar May 07 '21 12:05 yigitfindikli

@InfoCharlesM You need to use v11.3.1 or higher. @yigitfindikli

The stackbliz on v11.3.1 produces the same problem !

"primeng": "^11.3.1"

https://stackblitz.com/edit/primeng-treetableedit-demo-c2brq1?file=package.json

Edit : even with "primeng": "^11.4.0" the error is still there

InfoCharlesM avatar May 10 '21 12:05 InfoCharlesM

same here. I still have this problem. onEditComplete event ist not fired when clicking another cell.

Fakerinc avatar Sep 10 '21 13:09 Fakerinc

It's still not working. Any idea when will it be available?

gayatriraichandani avatar Jul 05 '22 01:07 gayatriraichandani

I have the same issue on 15.4.1.

mohammadaajo avatar Jul 17 '24 13:07 mohammadaajo