Skip to content

Commit f3806bc

Browse files
committed
Allow none in tab panel
1 parent 0376350 commit f3806bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/controls/src/phosphor/tabpanel.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class TabPanel extends Widget {
120120
* Get the index of the currently selected tab.
121121
*
122122
* #### Notes
123-
* This will be `-1` if no tab is selected.
123+
* This will be `null` if no tab is selected.
124124
*/
125125
get currentIndex(): number {
126126
return this.tabBar.currentIndex;
@@ -130,7 +130,7 @@ class TabPanel extends Widget {
130130
* Set the index of the currently selected tab.
131131
*
132132
* #### Notes
133-
* If the index is out of range, it will be set to `-1`.
133+
* If the index is out of range, it will be set to `null`.
134134
*/
135135
set currentIndex(value: number) {
136136
this.tabBar.currentIndex = value;

0 commit comments

Comments
 (0)