Skip to content

Commit

Permalink
rerender Create button on disabled prop change
Browse files Browse the repository at this point in the history
  • Loading branch information
HH: Andrico Karoulla committed Feb 4, 2021
1 parent fe9f24a commit 9e3ccf9
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 9e3ccf9

Please sign in to comment.