Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit 571c7bb

Browse files
committed
fix(plugins/plugin-client-common): escape in playground cancels editor
it shouldn't, because there is no way to restore the editor
1 parent 9a6a133 commit 571c7bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/plugin-client-common/src/components/Content/Commentary.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ export default class Commentary extends React.PureComponent<Props, State> {
311311
simple
312312
wordWrap="on"
313313
onSave={this._onSaveFromEditor}
314-
onCancel={this._onCancelFromEditor}
314+
onCancel={!this.isCoupled && this._onCancelFromEditor}
315315
onContentChange={this._onContentChange}
316316
contentType="markdown"
317317
scrollIntoView={false}

0 commit comments

Comments
 (0)