We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c416bc commit 3470b5fCopy full SHA for 3470b5f
src/tabs/Tabs.jsx
@@ -6,7 +6,7 @@ import { TabContent } from './TabContent';
6
export function Tabs({ vertical, tabs, activeTab, onlyRenderActiveTab, bordered, onSelect }) {
7
if (activeTab >= tabs.length) {
8
// eslint-disable-next-line no-console
9
- console.error(`Invalid tab selected: ${activeTab}`);
+ console.error(`Invalid tab selected: ${activeTab}. The first tab will be selected instead.`);
10
activeTab = 0;
11
}
12
0 commit comments