jsTree search query for child nodes only
问题 I am using jsTree with the search plugin. Now I want the search to only match child nodes and not parents nodes. This is what I've implemented: "search": { case_insensitive: true, show_only_matches: true, search_leaves_only: true, } Here's an example of my tree: ▼ Parent1 └ child 1 ParentABC ▼ Parentxyz └ child abc ParentABC has no child node and if I search for "abc", both ParentABC and child abc is shown but the expected result should have been child abc only. search_leaves_only: true works