Uncaught error in premium plugin code
-
Wordpress 5.9.3
Multicollab Premium version – 2.0.4.3while exploring more on the premium plugin, 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-block-admin.js
Line no. 794 –
if ((‘@’ === e.key || ‘KeyG’ === 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 check for thetypedText
before&& typedText.length > 0
2. you’d want to shift$(createTextarea).is(':focus') === true
this check to the left.Thanks!
- The topic ‘Uncaught error in premium plugin code’ is closed to new replies.