mirror of
https://github.com/HackPlan/polaris-react.git
synced 2026-04-29 09:45:39 +08:00
Add unsafe to componentWillReceiveProps in positioned overlay
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user