Skip to content

Commit

Permalink
fix: keyboard functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoSot committed Sep 27, 2022
1 parent da0fe8c commit f5a0f1a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/src/tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ class Tab extends BaseComponent {
const nextActiveElement = getNextActiveElement(this._getChildren().filter(element => !isDisabled(element)), event.target, isNext, true)

if (nextActiveElement) {
nextActiveElement.focus({ preventScroll: true })
Tab.getOrCreateInstance(nextActiveElement).show()
}
}
Expand Down

0 comments on commit f5a0f1a

Please sign in to comment.