Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
fix(module:cascader): search correctly when a root node is a leaf node #2108
Please check if your PR fulfills the following requirements:
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: #2104
What is the new behavior?
If a root node is also a leaf node, it can also be searched and highlighted correctly.
Does this PR introduce a breaking change?
@@ Coverage Diff @@ ## master #2108 +/- ## ========================================== + Coverage 95.96% 95.97% +<.01% ========================================== Files 473 473 Lines 11516 11516 Branches 1535 1535 ========================================== + Hits 11051 11052 +1 Misses 132 132 + Partials 333 332 -1
Actually the reason is when we parse nodes in the first layer, we didn't consider that they could be leaf nodes. See line 1222 in