File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/kit-headless/src/components/tabs Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ export const Tabs: FunctionComponent<TabsProps> = (props) => {
133
133
const tabId : string = tabIdFromTabMaybe || child . key || `${ panelIndex } ` ;
134
134
135
135
if ( label ) {
136
- tabComponents . push ( < Tab > { label } </ Tab > ) ;
136
+ tabComponents . push ( ( < Tab > { label } </ Tab > ) as JSXNode < typeof Tab > ) ;
137
137
}
138
138
if ( selected ) {
139
139
selectedIndex = panelIndex ;
@@ -188,7 +188,7 @@ export const Tabs: FunctionComponent<TabsProps> = (props) => {
188
188
tabListComponent . props . children = tabComponents ;
189
189
} else {
190
190
// Creating it as <TabList /> and adding children later doesn't work
191
- tabListComponent = < TabList > { tabComponents } </ TabList > ;
191
+ tabListComponent = ( < TabList > { tabComponents } </ TabList > ) as JSXNode < typeof TabList > ;
192
192
}
193
193
194
194
if ( typeof selectedIndex === 'number' ) {
You can’t perform that action at this time.
0 commit comments