We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0376350 commit f3806bcCopy full SHA for f3806bc
packages/controls/src/phosphor/tabpanel.ts
@@ -120,7 +120,7 @@ class TabPanel extends Widget {
120
* Get the index of the currently selected tab.
121
*
122
* #### Notes
123
- * This will be `-1` if no tab is selected.
+ * This will be `null` if no tab is selected.
124
*/
125
get currentIndex(): number {
126
return this.tabBar.currentIndex;
@@ -130,7 +130,7 @@ class TabPanel extends Widget {
130
* Set the index of the currently selected tab.
131
132
133
- * If the index is out of range, it will be set to `-1`.
+ * If the index is out of range, it will be set to `null`.
134
135
set currentIndex(value: number) {
136
this.tabBar.currentIndex = value;
0 commit comments