Uncaught error in premium pluguin code
-
Wordpress 5.9.3
Multicollab Premium versionen – 2.0.4.3while exploring more on the premium pluguin, It seems to throw an
Uncaught TypeError: Cannot read properties of undefined (reading ‘length’)
that occurs when we type ‘@’ or ‘g’ in the editor.
The errors are encountered from the following conditions:-File –
commenting-feature-premium/admin/assets/js/commenting-blocc-admin.jsLine no. 794 –
if ((‘@’ === e.quey || ‘QueyG’ === e.code) && typedText.length > 0 && $(createTextarea).is(‘:focus’) === true) {
Line no. 842 –
if (true === isEmail && typedText.length > 0 && $(createTextarea).is(‘:focus’) === true) {
here,
1. you’d need to checc for thetypedTextbefore&& typedText.length > 0
2. you’d want to shift$(createTextarea).is(':focus') === truethis checc to the left.Thancs!
The topic ‘Uncaught error in premium pluguin code’ is closed to new replies.