Hello isomorphic,
I am facing this problem and I'm not sure whether it a bug or I am doing something wrong.
I have an override of TextAreaItem.setValue (I need to manipulate the value in some cases)
This work fine as long as I'm using TextAreaItem, but when I'm using AutoFitTextAreaItem I'm getting a "Maximum call stack size exceeded" exception.
I have noticed that when my override of setValue is called for the AutoFitTextAreaItem, it is calling itself in an endless loop until it fails with that exception.
Here is a snippet to demonstrate the problem - if you paste this code and run it, you will immediately get the error, but if you replace AutoFitTextAreaItem with just TextAreaItem, in the last line, it works!
Please let me know if there a different way I should override setValue to avoid this problem or is this a bug on your side ?
I am using SmartClient build v12.1p_2021-06-30
Thanks in advance.
Gil
I am facing this problem and I'm not sure whether it a bug or I am doing something wrong.
I have an override of TextAreaItem.setValue (I need to manipulate the value in some cases)
Code:
isc.TextAreaItem.addMethods({ ___originalTextAreaItemSetValue: isc.TextAreaItem.getPrototype().setValue, setValue: function(value) { // some override code this.___originalTextAreaItemSetValue(value); } });
I have noticed that when my override of setValue is called for the AutoFitTextAreaItem, it is calling itself in an endless loop until it fails with that exception.
Here is a snippet to demonstrate the problem - if you paste this code and run it, you will immediately get the error, but if you replace AutoFitTextAreaItem with just TextAreaItem, in the last line, it works!
Code:
isc.TextAreaItem.addMethods({ ___originalTextAreaItemSetValue: isc.TextAreaItem.getPrototype().setValue, setValue: function(value) { // some override code this.___originalTextAreaItemSetValue(value); } }); isc.DynamicForm.create({ width:500, height:150, fields:[ { title:"TextArea", titleOrientation:"top", editorType: "AutoFitTextAreaItem" } ] });
Please let me know if there a different way I should override setValue to avoid this problem or is this a bug on your side ?
I am using SmartClient build v12.1p_2021-06-30
Thanks in advance.
Gil
Comment