1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-23 18:53:36 +02:00

Desktop: Fixes #1819: Note view was not reloaded after viewing revisions

This commit is contained in:
Laurent Cozic 2019-10-11 20:10:25 +02:00
parent 7d7975daf4
commit 6be36ffe17

View File

@ -691,10 +691,13 @@ class NoteTextComponent extends React.Component {
}
async noteRevisionViewer_onBack() {
this.setState({ showRevisions: false });
this.lastSetHtml_ = '';
this.scheduleReloadNote(this.props);
// When coming back from the revision viewer, the webview has been
// unmounted so will need to reload. We set webviewReady to false
// to make sure everything is reloaded as expected.
this.setState({ showRevisions: false, webviewReady: false }, () => {
this.lastSetHtml_ = '';
this.scheduleReloadNote(this.props);
});
}
title_changeText(event) {