Skip to content
Snippets Groups Projects
Unverified Commit 8bf90c66 authored by Anton Kulyk's avatar Anton Kulyk Committed by GitHub
Browse files

Fix feedback on dashcard resizing (#26569)

parent f5608c6d
No related branches found
No related tags found
No related merge requests found
......@@ -106,5 +106,11 @@ class CardRenderer extends Component {
export default ExplicitSize({
wrapped: true,
refreshMode: props => (props.isDashboard ? "debounceLeading" : "throttle"),
refreshMode: props => {
const { isDashboard, isEditing } = props;
if (isDashboard) {
return isEditing ? "debounce" : "debounceLeading";
}
return "throttle";
},
})(CardRenderer);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment