Make tab.setPosition not do anything if nothing is passed
This commit is contained in:
parent
6c2ead8edd
commit
ed9e63e92f
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -244,7 +244,7 @@ class Tab extends EventEmitter {
|
|||
}
|
||||
|
||||
setPosition (newPosition) {
|
||||
if (newPosition === 0) {
|
||||
if (newPosition === 0 || newPosition === undefined) {
|
||||
return null;
|
||||
}
|
||||
let tabContainer = this.tabGroup.tabContainer;
|
||||
|
|
Loading…
Reference in a new issue