Skip to content

Commit

Permalink
fix: remove focus state on functions
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderMelox committed Aug 27, 2024
1 parent 3252798 commit 62cd8f2
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,13 +207,11 @@ export let EditInPlace = forwardRef<HTMLDivElement, EditInplaceProps>(

const onSaveHandler = () => {
setInitialValue(value);
setFocused(false);
setDirtyInput(false);
onSave();
};

const onCancelHandler = () => {
setFocused(false);
setDirtyInput(false);
onCancel(initialValue);
};
Expand Down

0 comments on commit 62cd8f2

Please sign in to comment.