Skip to content

Commit 97c51fa

Browse files
authored
Merge pull request #326 from fras2560/master
fix(issue-324): Re-hydrate the controlled component
2 parents 7e74820 + 05eadaf commit 97c51fa

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

.ts/index.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,7 @@ export class Controlled extends React.Component<IControlledCodeMirror, any> {
611611
if (this.props.editorWillUnmount) {
612612
this.props.editorWillUnmount(cm);
613613
}
614+
this.hydrated = false;
614615
}
615616

616617
/** @internal */

0 commit comments

Comments
 (0)