Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property scrollwidth or replace of undefined. #207

Open
jefpadfi opened this issue Jan 22, 2018 · 7 comments
Open

Cannot read property scrollwidth or replace of undefined. #207

jefpadfi opened this issue Jan 22, 2018 · 7 comments
Assignees
Labels

Comments

@jefpadfi
Copy link

I recieve the following error when trying to use version 3.2.3 release. Both errors are inside autocomplete.min.js. Autocomplete does not work, As long as I type the name correctly the MentionME plugin does work.

autocomplete.min.js:1 Uncaught TypeError: Cannot read property 'scrollWidth' of undefined
    at Object.Z [as init] (autocomplete.min.js:1)
    at Object.C [as init] (autocomplete.min.js:1)
    at HTMLDocument.p (autocomplete.min.js:1)
    at j (jquery.js?ver=1806:2)
    at Object.fireWith [as resolveWith] (jquery.js?ver=1806:2)
    at Function.ready (jquery.js?ver=1806:2)
    at HTMLDocument.J (jquery.js?ver=1806:2)
Z @ autocomplete.min.js:1
C @ autocomplete.min.js:1
p @ autocomplete.min.js:1
j @ jquery.js?ver=1806:2
fireWith @ jquery.js?ver=1806:2
ready @ jquery.js?ver=1806:2
J @ jquery.js?ver=1806:2
autocomplete.min.js:1 Uncaught TypeError: Cannot read property 'replace' of undefined
    at A (autocomplete.min.js:1)
    at HTMLDivElement.G (autocomplete.min.js:1)
    at HTMLDivElement.dispatch (jquery.js?ver=1806:4)
    at HTMLDivElement.r.handle (jquery.js?ver=1806:4)
    at Object.trigger (jquery.js?ver=1806:4)
    at HTMLDivElement.<anonymous> (jquery.js?ver=1806:4)
    at Function.each (jquery.js?ver=1806:2)
    at m.fn.init.each (jquery.js?ver=1806:2)
    at m.fn.init.trigger (jquery.js?ver=1806:4)
    at HTMLBodyElement.db (jquery.sceditor.bbcode.min.js?ver=1805:2)


A | @ | autocomplete.min.js:1
-- | -- | --
  | G | @ | autocomplete.min.js:1
  | dispatch | @ | jquery.js?ver=1806:4
  | r.handle | @ | jquery.js?ver=1806:4
  | trigger | @ | jquery.js?ver=1806:4
  | (anonymous) | @ | jquery.js?ver=1806:4
  | each | @ | jquery.js?ver=1806:2
  | each | @ | jquery.js?ver=1806:2
  | trigger | @ | jquery.js?ver=1806:4
  | db | @ | jquery.sceditor.bbcode.min.js?ver=1805:2
  | dispatch | @ | jquery.js?ver=1806:4
  | r.handle | @ | jquery.js?ver=1806:4
@WildcardSearch
Copy link
Owner

Hi @TheDocter

Thanks for the report. Can you do me a favor and go to MentionMe's plugin settings, disable Minify JavaScript option and post those error messages again?

@jefpadfi
Copy link
Author

When the Minify JavaScript option is turned off, there are no errors and the pop up window and auto complete work just fine.

*side note -> Tennant was one of my favorite Doctors. Love the avatar man.

@WildcardSearch
Copy link
Owner

WildcardSearch commented Jan 23, 2018

Thanks for the detailed report. I haven't experienced that error, but I will try so that I can fix the issue.

For now, as bad as I hate to ask you to, I'd suggest just leaving Minify JavaScript off.

*side note reply -> I like you more just because you said that lol

@Eldenroot
Copy link
Contributor

Can you confirm that when JS is minified, the minimum width of mentionme box is not set properly sometimes?

@WildcardSearch
Copy link
Owner

I'll try to have a look this weekend. Should be getting my first off day of 2019 Saturday (I hope)

@Eldenroot
Copy link
Contributor

Did you have a chance to test it out? I think it could be an issue with minified js, what do you use for minifying?

@WildcardSearch
Copy link
Owner

@Eldenroot I somehow missed this. I recently went back to YUI to compress JS because of issues with Google Closure Compiler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants