Skip to content

Commit

Permalink
Merge pull request #5866 from andrico1234/feature/rerender-create-but…
Browse files Browse the repository at this point in the history
…ton-on-disable-prop-change

rerender Create button on disabled prop change
  • Loading branch information
djhi authored Feb 4, 2021
2 parents fe9f24a + 9e3ccf9 commit 7edb42c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/ra-ui-materialui/src/button/CreateButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export default memo(CreateButton, (prevProps, nextProps) => {
prevProps.basePath === nextProps.basePath &&
prevProps.label === nextProps.label &&
prevProps.translate === nextProps.translate &&
prevProps.to === nextProps.to
prevProps.to === nextProps.to &&
prevProps.disabled === nextProps.disabled
);
});

0 comments on commit 7edb42c

Please sign in to comment.