Skip to content

Commit

Permalink
Rebase next
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienMattiussi committed Mar 5, 2020
1 parent 89644b3 commit 10759b5
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/ra-ui-materialui/src/button/SaveButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,7 @@ const SaveButton: FC<SaveButtonProps> = ({
const translate = useTranslate();
const setOnSave = useContext(OnSaveContext);

// We handle the click event through mousedown because of an issue when
// the button is not as the same place when mouseup occurs, preventing the click
// event to fire.
// It can happen when some errors appear under inputs, pushing the button
// towards the window bottom.
const handleMouseDown = event => {
const handleClick = event => {
if (typeof onSave === 'function') {
setOnSave(onSave);
} else {
Expand Down

0 comments on commit 10759b5

Please sign in to comment.