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

WYSIWYG plugins causes "TypeError: string is undefined" #2229

Closed
SceLPI opened this issue Oct 23, 2018 · 3 comments
Closed

WYSIWYG plugins causes "TypeError: string is undefined" #2229

SceLPI opened this issue Oct 23, 2018 · 3 comments

Comments

@SceLPI
Copy link

SceLPI commented Oct 23, 2018

Subject of the issue

WYSIWYG plugins causes "TypeError: string is undefined"

Your environment

  • version of jquery-validate: 1.18.0
  • which browser and its version: Chrome 70.0.3538.67 x64 and Firefox 62.0.3 x64

Steps to reproduce

Using WYSIWYG (tested with Gijgo and TinyMCE) type anything on text field.
Click outside.

Expected behaviour

Just no Errors

Actual behaviour

Logging Error: TypeError: string is undefined
Line 1023

Fix suggestion

Just force variable string to be string everytime on line 1023:
Replace:

1023 return string.replace..
To:
1023 return (string+"").replace..

@mateusz-michalik
Copy link

I can reproduce this issue exactly as per @SceLPI's issue with jQuery Validation Plugin v1.17.0 and Summernote WYSIWYG v0.8.10 on Firefox 64.0.2 on OSX.

Error: TypeError: string is undefined
Line: 1032

@ilyas-oirraq
Copy link

thank you man!

@KoalaBear84
Copy link

Another PR just got merged which is like the other PR.

#2154

@staabm staabm closed this as completed Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants