fix(rerendering): reduce the re-rendering of the viewport grid (#3558)
This commit is contained in:
1 parent
cab8d322c2
commit
d8f628b125
5 files changed
+124
-98
No files matched your search
@@ -36,7 +36,7 @@ ContextMenu.propTypes = {
|
||||
label: PropTypes.string.isRequired,
|
||||
action: PropTypes.func.isRequired,
|
||||
})
|
||||
).isRequired,
|
||||
),
|
||||
};
|
||||
|
||||
export default ContextMenu;
|
||||
@@ -184,7 +184,10 @@ const SplitButton = ({
|
||||
const listItemRenderer = renderer || DefaultListItemRenderer;
|
||||
|
||||
return (
|
||||
<OutsideClickHandler onOutsideClick={outsideClickHandler}>
|
||||
<OutsideClickHandler
|
||||
onOutsideClick={outsideClickHandler}
|
||||
disabled={!state.isExpanded}
|
||||
>
|
||||
<div name="SplitButton" className="relative">
|
||||
<div
|
||||
className={classes.Button({
|
||||
|
||||
Reference in new issue
Block a user