From ed9e63e92ffcfb04399023ac854dd8bb15246476 Mon Sep 17 00:00:00 2001 From: W Etheredge Date: Tue, 7 Nov 2017 14:20:40 +0000 Subject: [PATCH] Make tab.setPosition not do anything if nothing is passed --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index c862a2f..6093ef2 100644 --- a/index.js +++ b/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;