remove focus from sidebar header toggle click (#18088)

This commit is contained in:
Kris 2022-08-26 16:00:01 -04:00 committed by GitHub
parent 614bf76c0b
commit faceb989bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -39,6 +39,11 @@ export default class SidebarSection extends Component {
} else {
this.keyValueStore.setItem(this.collapsedSidebarSectionKey, true);
}
// remove focus from the toggle, but only on click
if (!event.key) {
document.activeElement.blur();
}
}
@action