Add unsafe to componentWillReceiveProps in positioned overlay

This commit is contained in:
Andrew Musgrave
2019-05-23 14:45:41 -04:00
parent 9c86d6854b
commit 11602e356b

View File

@@ -52,6 +52,7 @@ export interface State {
lockPosition: boolean;
}
// eslint-disable-next-line react/no-unsafe
export default class PositionedOverlay extends React.PureComponent<
Props,
State
@@ -92,7 +93,8 @@ export default class PositionedOverlay extends React.PureComponent<
}
}
componentWillReceiveProps() {
// eslint-disable-next-line camelcase
UNSAFE_componentWillReceiveProps() {
this.handleMeasurement();
}