question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uncaught Error: Method value does not exist on jQuery.tooltip

See original GitHub issue

Hi, I encountered an error regarding $.fn.slider in materialize.js and WordPress Core’s color picker:

Here’s the JS error for reference:

Uncaught Error: Method value does not exist on jQuery.tooltip

stemmed from the $.error in these lines:

$.fn.slider = function(methodOrOptions) {
  if ( methods[methodOrOptions] ) {
    return methods[ methodOrOptions ].apply( this, Array.prototype.slice.call( arguments, 1 ));
  } else if ( typeof methodOrOptions === 'object' || ! methodOrOptions ) {
    // Default to "init"
    return methods.init.apply( this, arguments );
  } else {
    $.error( 'Method ' +  methodOrOptions + ' does not exist on jQuery.tooltip' );
  }
}; // Plugin end

Edit: Dug through WP’s code, the error occurs when WP’s Iris color picker calls:

controls.stripSlider.slider( 'value', value );

stripSlider though is created using jQuery-UI. So I think the conflict is from Materialcss & jQuery-UI.

Would it be possible to namespace Materialcss’s slider function?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:9
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
fegacommented, Feb 17, 2018

@Dogfalo maybe is a good idea reopen this?

1reaction
fegacommented, Apr 10, 2017

@bfintal @desaintmartin @mehmetalidumlu Could someone check if this is still an issue with the latest version?, also, please provide a codepen to reproduce the issue

Closed due inactivity, feel free to reopen it if it is still necessary.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Method “X” does not exist on JQuery.tooltip - WordPress.org
The aim is to embed a jquery dual-range input slider into an existing WordPress web page. Have been able to get several implementations...
Read more >
trying to use jquery tooltip plugin, object has no method "tooltip"
Got this problem too, and it was because of an old version of jquery lost in the sources folder, was jquery v1.6.2. If...
Read more >
Tooltip Widget - jQuery UI API Documentation
Gets an object containing key/value pairs representing the current tooltip options hash. This signature does not accept any arguments. Code examples: Invoke the ......
Read more >
Error no such method show for tooltip widget instance - Edureka
I am using ajax to submit a form for my registration, but am having an issue trying to setup tooltips to display error...
Read more >
JavaScript · Bootstrap v5.0
Due to browser limitations, some of our plugins, namely Dropdown, Tooltip and Popover plugins, cannot be used in a <script> tag with module...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found