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

Uncaught TypeError: e.replace is not a function exception when options is jQuery object on tooltip method #344

Closed
techfg opened this issue Jan 23, 2021 · 0 comments · Fixed by #350
Labels

Comments

@techfg
Copy link
Collaborator

techfg commented Jan 23, 2021

Describe the bug
According to the jdoc comments in the code, the 'options' parameter for tooltip method can be an object|string|jquery. However, when passing a jQuery object, a Uncaught TypeError: e.replace is not a function exception is encountered.

To Reproduce
Steps to reproduce the behavior:

  1. Open tooltip example
  2. In console, execute $('img').mapster('tooltip', 'blue-circle', $('<div/>').text('my tooltip') )
  3. Encounter Uncaught TypeError: e.replace is not a function exception
  4. In console, execute $('img').mapster('tooltip', $('b'), $('<div/>').text('my tooltip'))
  5. Encounter Uncaught TypeError: e.replace is not a function exception

Expected behavior
The tooltip should display and no exception should occur.

Screenshots
N/A

Desktop (please complete the following information):
N/A

Smartphone (please complete the following information):
N/A

Additional context
N/A

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

Successfully merging a pull request may close this issue.

1 participant