I am trying to use jstree navigation with a search plugin. Everything is fine, but after I added show_only_matches as true, the navigation did not work properly. Maybe because there are hidden nodes, and jstree is trying to navigate through them.
Here is my jsfiddle
$(function() { $(".search-input").keyup(function() { var searchString = $(this).val(); console.log(searchString); $('#jstree').jstree('search', searchString); }); $('#jstree').jstree({ 'core': { 'data': [ ... ] }, "search": { "case_insensitive": true, "show_only_matches" : true }, "plugins": ["search"] }); });
Any solution plz ...
source share