Merge pull request #193 from mdruuu/patch-1
fixed getTabByRelPosition Closes #192
This commit is contained in:
commit
6b06e2d103
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,7 @@ class TabGroup extends HTMLElement {
|
||||||
|
|
||||||
getTabByRelPosition(position: number) {
|
getTabByRelPosition(position: number) {
|
||||||
position = this.getActiveTab().getPosition() + position;
|
position = this.getActiveTab().getPosition() + position;
|
||||||
if (position <= 0) {
|
if (position < 0) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return this.getTabByPosition(position);
|
return this.getTabByPosition(position);
|
||||||
|
|
Loading…
Reference in a new issue