I had an issue with mathbox in my website, and I managed to trace it down to this line over here:
const l = (target.length = size ? size : value.length);
It seems like there might have been a mistake in the code, where a = was used instead of == or ===.
I beliebe this is the reason behind the issue in my website: Cannot assign to read only property 'length' of string 'xyz'
- const l = (target.length = size ? size : value.length);
+ const l = (target.length === size ? size : value.length);
I had an issue with mathbox in my website, and I managed to trace it down to this line over here:
It seems like there might have been a mistake in the code, where a
=was used instead of==or===.I beliebe this is the reason behind the issue in my website:
Cannot assign to read only property 'length' of string 'xyz'