-
Notifications
You must be signed in to change notification settings - Fork 123
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(bl-select): bl-select popover does not close in searchable bl-select components via dropdown icon #1052
base: next
Are you sure you want to change the base?
Conversation
…sary event bubbling
<bl-icon | ||
class="dropdown-icon open" | ||
name="arrow_up" | ||
@click=${(e: MouseEvent) => { |
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.
bl-icon shouldn't be used as button, or add proper role attributes for accessibility
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.
if we don't prefer to use buttons, we have to ensure it's focusable with tab by setting the tab-index attribute
@click=${(e: MouseEvent) => { | ||
e.stopPropagation(); | ||
this._togglePopover(); | ||
}} |
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.
we're repeating functions here, can you create a function for this outside of render function
@click=${(e: MouseEvent) => { | ||
e.stopPropagation(); | ||
this._togglePopover(); | ||
}} |
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.
same as above
@click=${(e: MouseEvent) => { | ||
e.stopPropagation(); | ||
this._togglePopover(); | ||
}} |
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.
same as above
fixes #1051