File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
@plotly/dash-test-components/src/components
dash/dash-renderer/src/wrapper Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -7,15 +7,17 @@ const RenderType = (props) => {
7
7
}
8
8
9
9
return < div id = { props . id } >
10
- < span > { props . renderType } </ span >
10
+ < span > { props . dashRenderType } </ span >
11
11
< button onClick = { onClick } > Test Internal</ button >
12
12
</ div > ;
13
13
} ;
14
14
15
15
RenderType . propTypes = {
16
16
id : PropTypes . string ,
17
- renderType : PropTypes . string ,
17
+ dashRenderType : PropTypes . string ,
18
18
n_clicks : PropTypes . number ,
19
19
setProps : PropTypes . func
20
20
} ;
21
+
22
+ RenderType . dashRenderType = true ;
21
23
export default RenderType ;
Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ function DashWrapper({
223
223
} as { [ key : string ] : any } ;
224
224
225
225
if ( checkRenderTypeProp ( component ) ) {
226
- extraProps [ 'renderType ' ] = newRender . current
226
+ extraProps [ 'dashRenderType ' ] = newRender . current
227
227
? 'parent'
228
228
: changedProps
229
229
? renderType
Original file line number Diff line number Diff line change @@ -64,13 +64,12 @@ export function getComponentLayout(
64
64
65
65
export function checkRenderTypeProp ( componentDefinition : any ) {
66
66
return (
67
- 'renderType ' in
67
+ 'dashRenderType ' in
68
68
pathOr (
69
69
{ } ,
70
70
[
71
71
componentDefinition ?. namespace ,
72
72
componentDefinition ?. type ,
73
- 'propTypes'
74
73
] ,
75
74
window as any
76
75
)
You can’t perform that action at this time.
0 commit comments