-
Notifications
You must be signed in to change notification settings - Fork 185
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 #965 - Reset button/item count overlaps search input query on fil… #1007
Conversation
<span class="js-filter-case-visible"></span> | ||
/ | ||
<span class="js-filter-case-total"></span> | ||
<div class="c-filter-search-controls"> |
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.
Wrapped the .c-filter-case-count
and .c-filter-reset
in a containing div
.
if ( document.getElementById("survey-dismiss") ) { | ||
document.getElementById("survey-dismiss").addEventListener("click", dismissSurvey, false); | ||
} | ||
|
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.
This was throwing a JS error on pages where the micro-survey-banner did not exist.
let query = input; | ||
|
||
if (input.target) { | ||
query = input.target.value.toLowerCase(); | ||
} |
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.
let
reasoning: this function was retro fit to run on page load if there was a value in the search filed. (Use case: user refreshes the page while some aliases are being filtered)
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.
cc/ @groovecoder
…e load, add logic to keep the reset button visible if the search bar contains a query, revise JS styles to toggle visibility classes instead of manipulating style.display,
bb0717d
to
25fc7f0
Compare
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.
Everything looks good!
This PR fixes:
STR:
X/X
number of items visible/total.