Skip to content

Commit 7517db8

Browse files
committed
fix(issue-324): Re-Hydrate upon remounting after unmounting
1 parent 673a668 commit 7517db8

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
@@ -813,6 +813,7 @@ export class UnControlled extends React.Component<IUnControlledCodeMirror, any>
813813
if (this.props.editorWillUnmount) {
814814
this.props.editorWillUnmount(cm);
815815
}
816+
this.hydrated = false;
816817
}
817818

818819
/** @internal */

0 commit comments

Comments
 (0)