-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(native-filters): values is not sorted when setting sort option #18145
Conversation
Codecov Report
@@ Coverage Diff @@
## master #18145 +/- ##
==========================================
- Coverage 65.95% 65.92% -0.03%
==========================================
Files 1584 1587 +3
Lines 62046 62107 +61
Branches 6273 6284 +11
==========================================
+ Hits 40920 40945 +25
- Misses 19505 19541 +36
Partials 1621 1621
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
/testenv up |
@geido Ephemeral environment spinning up at http://34.217.78.34:8080. Credentials are |
The problem of using a Screen.Recording.2022-01-25.at.10.50.36.AM.mov |
Good catch! Adjusted. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Ephemeral environment shutdown and build artifacts deleted. |
…pache#18145) * fix(native-filters): values is not sorted when setting sort option * fix: revert * pass sortComparator
…pache#18145) * fix(native-filters): values is not sorted when setting sort option * fix: revert * pass sortComparator
…pache#18145) * fix(native-filters): values is not sorted when setting sort option * fix: revert * pass sortComparator
SUMMARY
This problem occurs when the user creates a native filter with sorting option, because the select component defaults to using
localeCompare
to sort when nosortComparator
is passed, which overrides the original order. Here we fix it.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
before
Screen.Recording.2022-01-10.at.3.01.56.PM.mov
after
2022-01-23.10.39.35.mov
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION