diff --git a/src/components/tabview/TabView.js b/src/components/tabview/TabView.js index 7a5f94f903..5728af88a1 100644 --- a/src/components/tabview/TabView.js +++ b/src/components/tabview/TabView.js @@ -114,7 +114,9 @@ export class TabView extends Component { updateScrollBar(index) { let tabHeader = this[`tab_${index}`]; - tabHeader.scrollIntoView({ block: 'nearest' }) + if (tabHeader) { + tabHeader.scrollIntoView({ block: 'nearest' }); + } } updateButtonState() {