Skip to content

Commit

Permalink
Prettier.
Browse files Browse the repository at this point in the history
  • Loading branch information
atmgrifter00 committed Jul 31, 2024
1 parent c14e1e8 commit aaa31bd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/nimble-components/src/select/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,11 @@ export class Select
switch (key) {
case keyArrowDown: {
const selectedOption = this.options[this.selectedIndex];
if (this.open && isListOption(selectedOption) && !isOptionOrGroupVisible(selectedOption)) {
if (
this.open
&& isListOption(selectedOption)
&& !isOptionOrGroupVisible(selectedOption)
) {
if (this.openActiveIndex === this.selectedIndex) {
this.selectFirstOption();
} else {
Expand Down

0 comments on commit aaa31bd

Please sign in to comment.