Skip to content

Commit

Permalink
Revert "rename-unsafe-lifecycles"
Browse files Browse the repository at this point in the history
Summary:
This reverts commit 8b3e8c95f197453c8806175a59403c607c4f498d.

cc bvaughn flarnie
Closes facebookarchive/draft-js#1705

Differential Revision: D7361922

fbshipit-source-id: c1d1acd884996c4ac1f50c13c0001815dc057088
  • Loading branch information
mitermayer authored and facebook-github-bot committed Mar 22, 2018
1 parent 8e01e00 commit 9089c1f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/draft-0-10-0/tex/js/components/TeXBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class KatexOutput extends React.Component {
this._update();
}

UNSAFE_componentWillReceiveProps(nextProps) {
componentWillReceiveProps(nextProps) {
if (nextProps.content !== this.props.content) {
this._update();
}
Expand Down
2 changes: 1 addition & 1 deletion examples/draft-0-9-1/tex/js/components/TeXBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class KatexOutput extends React.Component {
this._update();
}

UNSAFE_componentWillReceiveProps(nextProps) {
componentWillReceiveProps(nextProps) {
if (nextProps.content !== this.props.content) {
this._update();
}
Expand Down
2 changes: 1 addition & 1 deletion src/component/base/DraftEditor.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ class DraftEditor extends React.Component<DraftEditorProps, State> {
* programmatically. We only care about selection events that occur because
* of browser interaction, not re-renders and forced selections.
*/
UNSAFE_componentWillUpdate(nextProps: DraftEditorProps): void {
componentWillUpdate(nextProps: DraftEditorProps): void {
if (!gkx('draft_js_stop_blocking_select_events')) {
this._blockSelectEvents = true;
}
Expand Down

0 comments on commit 9089c1f

Please sign in to comment.