Features
- Added a
filteredCountgetter to the tree API, reporting how many nodes match
the currentsearchTermacross the whole tree (regardless of which folders are
open), or 0 when there is no active search. Consumers can now render a match
count or a "no results" message viaisFiltered && filteredCount === 0instead
of inspectingvisibleNodes(issues #112 and #256). (#383)
Fixes
- The default
searchMatchno longer searches a node's children. It previously
stringified every value of the node's data, thechildrenarray included, so
each ancestor of a match counted as a match itself, and terms likeidor
namematched every folder by hitting keys nested in the children data. The filtered list is unchanged — parents of a match
are still shown to keep the tree's structure — buttree.filteredCountnow
reports real matches. (#383)