File tree 1 file changed +17
-4
lines changed 1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,20 @@ import {
12
12
stringifyId
13
13
} from '../../private/util' ;
14
14
15
+ // eslint-disable-next-line react/prop-types
16
+ function TabPane ( { children, tabId, ...otherProps } ) {
17
+ return (
18
+ < RBTab . Pane
19
+ eventKey = { tabId }
20
+ key = { tabId }
21
+ data-dash-is-loading = { getLoadingState ( ) || undefined }
22
+ { ...otherProps }
23
+ >
24
+ { children }
25
+ </ RBTab . Pane >
26
+ ) ;
27
+ }
28
+
15
29
/**
16
30
* Create Bootstrap styled tabs. Use the `active_tab` property to set, or get the
17
31
* currently active tab in a callback.
@@ -109,16 +123,15 @@ function Tabs({
109
123
const tabId = tab_id || 'tab-' + idx ;
110
124
111
125
return (
112
- < RBTab . Pane
113
- eventKey = { tabId }
126
+ < TabPane
114
127
key = { tabId }
115
128
disabled = { disabled }
116
129
style = { style }
117
130
className = { class_name || className }
118
- data-dash-is-loading = { getLoadingState ( ) || undefined }
131
+ tabId = { tabId }
119
132
>
120
133
{ child }
121
- </ RBTab . Pane >
134
+ </ TabPane >
122
135
) ;
123
136
} ) ;
124
137
return (
You can’t perform that action at this time.
0 commit comments