Uncaught Error: Method value does not exist on jQuery.tooltip
See original GitHub issueHi, 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:
- Created 8 years ago
- Reactions:9
- Comments:9 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Dogfalo maybe is a good idea reopen this?
@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.