• Resolved hnigam

    (@hnigam)


    Wordpress 5.9.3
    Multicollab Premium version – 2.0.4.3

    while 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 the typedText before && typedText.length > 0
    2. you’d want to shift $(createTextarea).is(':focus') === true this check to the left.

    Thanks!

    • This topic was modified 2 years, 5 months ago by hnigam.
    • This topic was modified 2 years, 5 months ago by hnigam.
Viewing 1 replies (of 1 total)
  • Hi @hnigam,

    We apologize for the inconvenience with the plugin Error.

    We could not regenerate this error. So I request you can create a support ticket on the Multicollab website and contact us form

    So If required, then we will schedule a call with you and try to fix this issue.

    I hope it sounds good to you.

    Thank you,

    • This reply was modified 2 years, 3 months ago by MULTIDOTS Inc.
Viewing 1 replies (of 1 total)
  • The topic ‘Uncaught error in premium plugin code’ is closed to new replies.