-
Notifications
You must be signed in to change notification settings - Fork 330
FIX: Extra empty lines added in the control bindings drop-down for some mouse buttons #2299
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
base: develop
Are you sure you want to change the base?
Conversation
| if (!item.children.Any()) | ||
| { | ||
| if (!item.IsSeparator()) | ||
| if (!item.IsSeparator() && item.searchableName.Length > 0) |
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.
That's it basically. We would like not to search in non-searchable items because they end up as empty lines in the displayed list in the end.
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
🤖 Helpful? Please react with 👍/👎 | Questions❓Please reach out in Slack #ask-u-pr-agent |
PR Code Suggestions ✨Explore these optional code suggestions:
🤖 Helpful? Please react with 👍/👎 | Questions❓Please reach out in Slack #ask-u-pr-agent |
|||||||||
Codecov ReportAttention: Patch coverage is
@@ Coverage Diff @@
## develop #2299 +/- ##
========================================
Coverage 77.95% 77.95%
========================================
Files 477 477
Lines 97416 97422 +6
========================================
+ Hits 75943 75949 +6
Misses 21473 21473 Flags with carried forward coverage won't be shown. Click here to find out more.
... and 1 file with indirect coverage changes 🚀 New features to boost your workflow:
|
ekcoh
left a comment
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.
Thanks for fixing this. Change makes a lot of sense IMO.
5ac5411 to
2acc063
Compare
Description
This PR aims at fixing the following problem with empty entries in the input control list that is better illustrated by a gif below. Practically, many of the mouse buttons will add an extra empty line:
The reason that happens is that we somehow have both searchable and not searchable advanced drop-down items for mouse in the list. The non-searchable have no name, and thus they're shown as empty lines.
In this PR I opted for not populating the drop-down hierarchy with search results that are non-searchable for whatever reason.
Case ISXB-1677
Testing status & QA
After fixing, I've basically followed the repro steps to make sure the problem is no longer there. I have a mouse with side buttons so it's easier to check on my end.
Overall Product Risks
Comments to reviewers
Please describe any additional information such as what to focus on, or historical info for the reviewers.
Checklist
Before review:
Changed,Fixed,Addedsections.Area_CanDoX,Area_CanDoX_EvenIfYIsTheCase,Area_WhenIDoX_AndYHappens_ThisIsTheResult.During merge:
NEW: ___.FIX: ___.DOCS: ___.CHANGE: ___.RELEASE: 1.1.0-preview.3.