@@ -1495,6 +1495,7 @@ export class AnnotationPage extends TatorPage {
1495
1495
this . _settings . setAttribute ( "version" , this . _version . id ) ;
1496
1496
this . _outerMain . appendChild ( save ) ;
1497
1497
this . _saves [ dataType ] = save ;
1498
+ save . style . display = "none" ;
1498
1499
1499
1500
save . addEventListener ( "cancel" , ( ) => {
1500
1501
this . _closeModal ( save ) ;
@@ -1521,6 +1522,7 @@ export class AnnotationPage extends TatorPage {
1521
1522
this . _settings . setAttribute ( "version" , this . _version . id ) ;
1522
1523
this . _outerMain . appendChild ( save ) ;
1523
1524
this . _saves [ dataType . id ] = save ;
1525
+ save . style . display = "none" ;
1524
1526
1525
1527
// For states specifically, if we are using the multi-view, we will
1526
1528
// create the state across all media
@@ -2264,6 +2266,7 @@ export class AnnotationPage extends TatorPage {
2264
2266
2265
2267
_closeModal ( save ) {
2266
2268
if ( save . classList . contains ( "is-open" ) ) {
2269
+ save . style . display = "none" ;
2267
2270
save . classList . remove ( "is-open" ) ;
2268
2271
this . removeAttribute ( "has-open-modal" ) ;
2269
2272
document . body . classList . remove ( "shortcuts-disabled" ) ;
@@ -2284,6 +2287,7 @@ export class AnnotationPage extends TatorPage {
2284
2287
save . metaMode = metaMode ;
2285
2288
save . classList . add ( "is-open" ) ;
2286
2289
save . dispatchEvent ( new Event ( "open" ) ) ;
2290
+ save . style . display = "block" ;
2287
2291
this . setAttribute ( "has-open-modal" , "" ) ;
2288
2292
document . body . classList . add ( "shortcuts-disabled" ) ;
2289
2293
0 commit comments