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 499ab0d commit 22dd7e1Copy full SHA for 22dd7e1
packages/web-components/src/components/tabs/tabs.ts
@@ -202,7 +202,9 @@ export default class CDSTabs extends HostListenerMixin(CDSContentSwitcher) {
202
203
// Specifies child `<cds-tab>` to hide its divider instead of using CSS,
204
// until `:host-context()` gets supported in all major browsers
205
- (nextItem as CDSTab).hideDivider = true;
+ if (nextItem) {
206
+ (nextItem as CDSTab).hideDivider = true;
207
+ }
208
}
209
210
protected _selectionDidChange(itemToSelect: CDSTab) {
0 commit comments