File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
packages/dashboard-frontend/src/components Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -34,17 +34,17 @@ export class BasicViewer extends React.PureComponent<Props> {
3434 autofocus : true ,
3535 } ) ;
3636 editor . setSize ( `100%` , `100%` ) ;
37- editor . getDoc ( ) . setValue ( this . props . value ) ;
38- editor . save ( ) ;
37+ editor . setValue ( this . props . value ) ;
38+ editor . focus ( ) ;
3939
4040 this . editor = editor ;
4141 }
4242 }
4343
4444 componentDidUpdate ( prevProps : Readonly < Props > ) : void {
4545 if ( this . editor && this . props . value !== prevProps . value ) {
46- this . editor . getDoc ( ) . setValue ( this . props . value ) ;
47- this . editor . save ( ) ;
46+ this . editor . setValue ( this . props . value ) ;
47+ this . editor . focus ( ) ;
4848 }
4949 }
5050
Original file line number Diff line number Diff line change 1919.devfileViewer > div {
2020 overflow : auto;
2121 height : 100% ;
22- border : 1 px solid var (--pf-global--BorderColor--100 );
22+ border : 2 px solid var (--pf-global--BorderColor--100 );
2323}
Original file line number Diff line number Diff line change @@ -47,8 +47,8 @@ export class DevfileViewer extends React.PureComponent<Props> {
4747 gooters : true ,
4848 } ) ;
4949 editor . setSize ( `100%` , `100%` ) ;
50- editor . getDoc ( ) . setValue ( this . props . value ) ;
51- editor . save ( ) ;
50+ editor . setValue ( this . props . value ) ;
51+ editor . focus ( ) ;
5252
5353 this . editor = editor ;
5454 }
@@ -57,7 +57,7 @@ export class DevfileViewer extends React.PureComponent<Props> {
5757 componentDidUpdate ( prevProps : Readonly < Props > ) : void {
5858 if ( this . editor && this . props . value !== prevProps . value ) {
5959 this . editor . getDoc ( ) . setValue ( this . props . value ) ;
60- this . editor . save ( ) ;
60+ this . editor . focus ( ) ;
6161 }
6262 }
6363
You can’t perform that action at this time.
0 commit comments