@@ -218,6 +218,7 @@ export default class AppTile extends React.Component {
218
218
219
219
// Delete the widget from the persisted store for good measure.
220
220
PersistedElement . destroyElement ( this . _persistKey ) ;
221
+ ActiveWidgetStore . destroyPersistentWidget ( this . props . app . id ) ;
221
222
222
223
if ( this . _sgWidget ) this . _sgWidget . stop ( { forceDestroy : true } ) ;
223
224
}
@@ -307,7 +308,6 @@ export default class AppTile extends React.Component {
307
308
if ( this . iframe ) {
308
309
// Reload iframe
309
310
this . iframe . src = this . _sgWidget . embedUrl ;
310
- this . setState ( { } ) ;
311
311
}
312
312
} ) ;
313
313
}
@@ -333,7 +333,7 @@ export default class AppTile extends React.Component {
333
333
// this would only be for content hosted on the same origin as the element client: anything
334
334
// hosted on the same origin as the client will get the same access as if you clicked
335
335
// a link to it.
336
- const sandboxFlags = "allow-forms allow-popups allow-popups-to-escape-sandbox " +
336
+ const sandboxFlags = "allow-forms allow-popups allow-popups-to-escape-sandbox " +
337
337
"allow-same-origin allow-scripts allow-presentation" ;
338
338
339
339
// Additional iframe feature pemissions
@@ -443,25 +443,25 @@ export default class AppTile extends React.Component {
443
443
return < React . Fragment >
444
444
< div className = { appTileClasses } id = { this . props . app . id } >
445
445
{ this . props . showMenubar &&
446
- < div className = "mx_AppTileMenuBar" >
447
- < span className = "mx_AppTileMenuBarTitle" style = { { pointerEvents : ( this . props . handleMinimisePointerEvents ? 'all' : false ) } } >
448
- { this . props . showTitle && this . _getTileTitle ( ) }
449
- </ span >
450
- < span className = "mx_AppTileMenuBarWidgets" >
451
- { this . props . showPopout && < AccessibleButton
452
- className = "mx_AppTileMenuBar_iconButton mx_AppTileMenuBar_iconButton_popout"
453
- title = { _t ( 'Popout widget' ) }
454
- onClick = { this . _onPopoutWidgetClick }
455
- /> }
456
- < ContextMenuButton
457
- className = "mx_AppTileMenuBar_iconButton mx_AppTileMenuBar_iconButton_menu"
458
- label = { _t ( "Options" ) }
459
- isExpanded = { this . state . menuDisplayed }
460
- inputRef = { this . _contextMenuButton }
461
- onClick = { this . _onContextMenuClick }
462
- />
463
- </ span >
464
- </ div > }
446
+ < div className = "mx_AppTileMenuBar" >
447
+ < span className = "mx_AppTileMenuBarTitle" style = { { pointerEvents : ( this . props . handleMinimisePointerEvents ? 'all' : false ) } } >
448
+ { this . props . showTitle && this . _getTileTitle ( ) }
449
+ </ span >
450
+ < span className = "mx_AppTileMenuBarWidgets" >
451
+ { this . props . showPopout && < AccessibleButton
452
+ className = "mx_AppTileMenuBar_iconButton mx_AppTileMenuBar_iconButton_popout"
453
+ title = { _t ( 'Popout widget' ) }
454
+ onClick = { this . _onPopoutWidgetClick }
455
+ /> }
456
+ < ContextMenuButton
457
+ className = "mx_AppTileMenuBar_iconButton mx_AppTileMenuBar_iconButton_menu"
458
+ label = { _t ( "Options" ) }
459
+ isExpanded = { this . state . menuDisplayed }
460
+ inputRef = { this . _contextMenuButton }
461
+ onClick = { this . _onContextMenuClick }
462
+ />
463
+ </ span >
464
+ </ div > }
465
465
{ appTileBody }
466
466
</ div >
467
467
0 commit comments