File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ export interface ReplProps {
41
41
current : string ;
42
42
setCurrent : ( tabId : string ) => void ;
43
43
onEditorReady ?: ( editor : mEditor . IStandaloneCodeEditor ) => unknown ;
44
+ ref ?: HTMLDivElement | ( ( el : HTMLDivElement ) => void ) | undefined ;
44
45
}
45
46
46
47
export const Repl : Component < ReplProps > = ( props ) => {
@@ -262,7 +263,12 @@ export const Repl: Component<ReplProps> = (props) => {
262
263
263
264
return (
264
265
< div
265
- ref = { ( el ) => setGrid ( el ) }
266
+ ref = { ( el ) => {
267
+ setGrid ( el ) ;
268
+ if ( props . ref ) {
269
+ ( props . ref as ( el : HTMLDivElement ) => void ) ( el ) ;
270
+ }
271
+ } }
266
272
class = "relative grid bg-blueGray-50 h-full overflow-hidden text-blueGray-900 dark:text-blueGray-50 font-sans"
267
273
classList = { {
268
274
'wrapper--forced' : props . isHorizontal ,
You can’t perform that action at this time.
0 commit comments