mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Upgrade to React@18 (#5172)
* upgrade to react@18 read more: https://reactjs.org/blog/2022/03/29/react-v18.html
This commit is contained in:
1 parent
06e7dfce5e
commit
71b222f9d0
6 files changed
+46
-49
No files matched your search
@@ -144,7 +144,7 @@ export class Menu extends React.Component<MenuProps, State> {
|
||||
}
|
||||
}
|
||||
|
||||
refreshPosition = () => {
|
||||
refreshPosition = () => requestAnimationFrame(() => {
|
||||
if (!this.props.usePortal || !this.opener || !this.elem) {
|
||||
return;
|
||||
}
|
||||
@@ -187,7 +187,7 @@ export class Menu extends React.Component<MenuProps, State> {
|
||||
left: renderMenuLeft ? menuOnLeftSidePosition : menuOnRightSidePosition,
|
||||
},
|
||||
});
|
||||
};
|
||||
});
|
||||
|
||||
open() {
|
||||
if (this.isOpen) {
|
||||
|
||||
Reference in new issue
Block a user