primefaces / primeng

The Most Complete Angular UI Component Library
https://primeng.org
Other
10.29k stars 4.56k forks source link

"RangeError: Maximum call stack size exceeded" in p-table with whole table editing mode with pInputText cells #12522

Open pavlov-leonid opened 1 year ago

pavlov-leonid commented 1 year ago

We would like to make table with inline editing of whole table. We use p-table compopent with editMode="row" and editingRowKeys and set "true" for all table rows.

here stackblitz example based on standard primeng-tableedit-demo https://stackblitz.com/edit/primeng-tableedit-demo-s9bz8h?file=src/app/app.component.ts

When row count is more than 132 (with 3 pInputText in each row) we get a lot of errors in browser console:

PrimeNG v13 and v14 are affected by this issue.

Acording to stack trace it is some kind of recurtion in InputText.ngAfterViewInit...

What we do wrong? Maybe exists any workaroud or editMode="table" ?

vandamb commented 1 year ago

I encountered in fact the same issue (primeng 14.2.2) with a regular table (no editmode) containing 3 pInputText per row, from the moment the number of rows > 111. I could work around it by setting the pagination of the table to 100 (was 150).

filatov-egor commented 1 year ago

I have the same problem. Are there any solutions that do not involve reducing the number of inputs on the page?

NM5Reimu commented 1 year ago

Same Does anyone already have a solution?

mylifeandcode commented 1 year ago

Having this issue in v16.0.2 as well.

rd-joni commented 4 months ago

Having this issue in v16.5.1 as well, cant use more than 100 inputs in the table.

fortunes-guardian commented 2 months ago

I have the same issue, without table, just a lot of inputs on one page. Debugged it down to: 'InputText.ngAfterViewInit' also. I had to stop using the directive.

gwartnes commented 2 months ago

Same issue here. Version 15.2.0. Error is triggered somewhere between 370 ~ 560 rows, where each row has one input with the pInputText directive.