@@ -218,6 +218,7 @@ export default class AppTile extends React.Component {
218218
219219 // Delete the widget from the persisted store for good measure.
220220 PersistedElement . destroyElement ( this . _persistKey ) ;
221+ ActiveWidgetStore . destroyPersistentWidget ( this . props . app . id ) ;
221222
222223 if ( this . _sgWidget ) this . _sgWidget . stop ( { forceDestroy : true } ) ;
223224 }
@@ -307,7 +308,6 @@ export default class AppTile extends React.Component {
307308 if ( this . iframe ) {
308309 // Reload iframe
309310 this . iframe . src = this . _sgWidget . embedUrl ;
310- this . setState ( { } ) ;
311311 }
312312 } ) ;
313313 }
@@ -333,7 +333,7 @@ export default class AppTile extends React.Component {
333333 // this would only be for content hosted on the same origin as the element client: anything
334334 // hosted on the same origin as the client will get the same access as if you clicked
335335 // 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 " +
337337 "allow-same-origin allow-scripts allow-presentation" ;
338338
339339 // Additional iframe feature pemissions
@@ -443,25 +443,25 @@ export default class AppTile extends React.Component {
443443 return < React . Fragment >
444444 < div className = { appTileClasses } id = { this . props . app . id } >
445445 { 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 > }
465465 { appTileBody }
466466 </ div >
467467
0 commit comments