We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b3fe3a commit cd62e62Copy full SHA for cd62e62
packages/react/src/components/Tabs/Tabs.js
@@ -180,10 +180,10 @@ export default class Tabs extends React.Component {
180
}
181
182
if (window.matchMedia('(min-width: 42rem)').matches) {
183
- evt.preventDefault();
184
const nextIndex = this.getNextIndex(index, this.getDirection(evt));
185
const tab = this.getTabAt(nextIndex);
186
- if (tab) {
+ if (tab && matches(evt, [keys.ArrowLeft, keys.ArrowRight])) {
+ evt.preventDefault();
187
this.selectTabAt(nextIndex, onSelectionChange);
188
if (tab.tabAnchor) {
189
tab.tabAnchor.focus();
0 commit comments