Skip to content

Commit

Permalink
Fixed #2391 - TabView with scrollable throws an exception
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Nov 5, 2021
1 parent 5b19c09 commit 566e30a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/tabview/TabView.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 566e30a

Please sign in to comment.