-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Process processed value instead of old one, bring type safety to proc…
…essSearchBar (#6676) * Process processed value instead of old one This fixes two cases: 1) A processor changes a values type to be an object or array. In that case we would previously not recurse down as the old value was still of another type. 2) A processor changes a field nested inside an object or array value. When recursing down, the options[key] would no longer match the value. * Bring type safety to processSearchBar Fixes an error where hideOnScroll was not being applied. Also makes the whole function a lot more readable * Added tests for processSearchBar Co-authored-by: Guy Carmeli <guyca@users.noreply.github.com>
- Loading branch information
1 parent
46e4d92
commit 055758d
Showing
2 changed files
with
74 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters