question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

edit cell validator Maximum call stack size exceeded

See original GitHub issue

To Reproduce The price does not allow less than 0, click Edit Price if you enter the <0 number, then click on the other cells to edit the error “Maximum Call stack size exceeded.”

// I use Chrome devtools to debug display errors out now  tabulator.js row:13276
Edit.prototype.focusCellNoEvent = function (cell) {
		this.recursionBlock = true;
		if (this.table.browser !== "ie") {
			cell.getElement().focus();
		}
		this.recursionBlock = false;
	};

In addition, can you provide version 4.2 of the API documentation to GitHub, easy to use offline viewing

Sorry, my English is very poor, I hope I have expressed my problem

Describe the bug Uncaught RangeError: Maximum call stack size exceeded. at Edit.focusCellNoEvent (tabulator.js:13276) at success (tabulator.js:13323) at onChange (tabulator.js:13594) at HTMLInputElement.<anonymous> (tabulator.js:13582) at Edit.focusCellNoEvent (tabulator.js:13276) at success (tabulator.js:13323) at onChange (tabulator.js:13594) at HTMLInputElement.<anonymous> (tabulator.js:13582) at Edit.focusCellNoEvent (tabulator.js:13276) at success (tabulator.js:13323) Edit.focusCellNoEvent @ tabulator.js:13276 success @ tabulator.js:13323 onChange @ tabulator.js:13594 (anonymous) @ tabulator.js:13582 Edit.focusCellNoEvent @ tabulator.js:13276 success @ tabulator.js:13323 onChange @ tabulator.js:13594 (anonymous) @ tabulator.js:13582

Tabulator Info Tabulator 4.2.3

Working Example

var table = new Tabulator("#example-table", {
  layout: "fitColumns", //fit columns to width of table (optional)
  columns: [ //Define Table Columns
    {
      title: "price", field: "price", editor: "number", validator: {
        type: "min",
        parameters: 0,
      },
    },
    {
      title: "Number", field: "number", editor: 'number', validator: "numeric",
    },
  ],
});

Desktop (please complete the following information):

  • OS: windows 7
  • Browser Google Chrome 72.0.3626.121

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
olifolkerdcommented, Apr 7, 2019

there was an issue with the number editor that caused multiple event bindings to be created on validation fail which cascaded and used the whole call stack.

I have pushed a fix for this to the master branch and will include it in today’s patch release

Cheers

Oli 😃

0reactions
jcramirezcommented, Oct 16, 2019

Hi @olifolkerd ,

I am experiencing this issue as well using Electron.

Uncaught RangeError: Maximum call stack size exceeded …\node_modules\tabulator-tables\dist\js\tabulator.js:9480

Using: “tabulator-tables”: “^4.4.3”

@olifolkerd I figured out my problem it had to do with the data I was passing to the data element. I was passing a direct model from the database instead of passing an object. Now I can edit my elements properly. Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular: when add remove Validators and update form status ...
The RangeError: Maximum call stack size exceeded error is thrown because you're calling the updateValueAndValidity() function within the ...
Read more >
JavaScript RangeError: Maximum Call Stack Size Exceeded
The RangeError: Maximum call stack size exceeded is thrown when a function call is made that exceeds the call stack size. This can...
Read more >
Maximum call stack error occurs when you edit the row.
DataGrid - Maximum call stack size error occurs when circular reference is set as a field and validation rule is applied in editing...
Read more >
Editable List View javascript error - Maximum call stack size ...
I checked the browser console and there is a JavaScript error: Uncaught RangeError: Maximum call stack size exceeded.
Read more >
Maximum call stack size exceeded?? - Salesforce Developers
Maximum call stack size exceeded ?? ... component.find("picklistOptions").set("v.options",optionValues); Any help you can provide is greatly ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found