2526-fix(front): Save on Esc and Click Outside (#2750)
This commit is contained in:
@ -32,7 +32,14 @@ export const TableCell = ({
|
|||||||
closeTableCell();
|
closeTableCell();
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleEscape = () => {
|
const handleClickOutside: FieldInputEvent = (persistField) => {
|
||||||
|
persistField();
|
||||||
|
|
||||||
|
closeTableCell();
|
||||||
|
};
|
||||||
|
|
||||||
|
const handleEscape: FieldInputEvent = (persistField) => {
|
||||||
|
persistField();
|
||||||
closeTableCell();
|
closeTableCell();
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -54,7 +61,7 @@ export const TableCell = ({
|
|||||||
editModeContent={
|
editModeContent={
|
||||||
<FieldInput
|
<FieldInput
|
||||||
onCancel={handleCancel}
|
onCancel={handleCancel}
|
||||||
onClickOutside={handleCancel}
|
onClickOutside={handleClickOutside}
|
||||||
onEnter={handleEnter}
|
onEnter={handleEnter}
|
||||||
onEscape={handleEscape}
|
onEscape={handleEscape}
|
||||||
onShiftTab={handleShiftTab}
|
onShiftTab={handleShiftTab}
|
||||||
|
|||||||
Reference in New Issue
Block a user