Skip to content

Commit

Permalink
Previewer: Prevent focus from scrolling when clicking a listbox option
Browse files Browse the repository at this point in the history
Fixes #130
  • Loading branch information
ryelle committed Jun 18, 2024
1 parent b450b5f commit d97d68a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class wporgListbox {
}

// Focus the container.
element.closest( 'ul' ).focus();
element.closest( 'ul' ).focus( { preventScroll: true } );

this.current = element.dataset.index * 1;

Expand Down

0 comments on commit d97d68a

Please sign in to comment.