-
Notifications
You must be signed in to change notification settings - Fork 6
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
[#78] Fixed Single and Group filter announcing changes to content and a "down" key trigger for collapsible. #118
Conversation
…o right, top to bottom (e.g. first row left to right and then second row left to right).
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.
@joshua-salsadigital
please see my inline comments
t.el.setAttribute('aria-live', 'polite'); | ||
}; | ||
|
||
// Find group Filter components and initialize |
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.
remove this commnet
* Update the instance. | ||
*/ | ||
CivicThemeGroupFilterComponent.prototype.update = function () { | ||
const t = this; |
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.
use this
directly
|
||
this.el = el; | ||
|
||
this.el.addEventListener('ct.group-filter.update', () => { |
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.el.addEventListener('ct.group-filter.update', this.update.bind(this, true)
this.update(true); | ||
}); | ||
|
||
// Function to trigger custom event |
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.
please remove this and other comments like this - they are not describing anything useful
}; | ||
|
||
// Function to bind event listeners | ||
const bindEventListeners = function () { |
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.
please simplify this by not using the bindEventListeners
this.el.querySelectorAll('input, textarea, select, [type="checkbox"], [type="radio"]').forEach((input) => {
input.addEventListener('change', function(){
// Find parent.
const parent = this.parent..
parent.dispatchEvent(new CustomEvent('ct.group-filter.update'));
});
});
* @file | ||
* Single Filter component. | ||
*/ | ||
function CivicThemeSingleFilterComponent(el) { |
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 needs to have the same updates as above
Closes #78
Checklist before requesting a review
as
[#123] Verb in past tense with a period at the end.
Changed
section about WHY something wasdone if this was a bespoke implementation.
and they have passed.
Changed
Screenshots