Skip to content

Commit

Permalink
Fix tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
FabienLelaquais committed Dec 2, 2024
1 parent 086f946 commit 76ba0d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/taipy-gui/src/components/Taipy/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ const Input = (props: TaipyInputProps) => {

const handleBlur = useCallback(
(evt: React.FocusEvent<HTMLInputElement>) => {
let val = (type === "number")
const val = (type === "number")
? Number(evt.currentTarget.querySelector("input")?.value)
: (multiline
? evt.currentTarget.querySelector("textarea")?.value
Expand All @@ -157,7 +157,7 @@ const Input = (props: TaipyInputProps) => {
onAction && dispatch(createSendActionNameAction(id, module, onAction, "Tab", updateVarName, val));
evt.preventDefault();
},
[dispatch, updateVarName, module, onChange, propagate, changeDelay]
[dispatch, type, updateVarName, module, onChange, propagate, changeDelay, id, multiline, onAction]
);

const handleAction = useCallback(
Expand Down

0 comments on commit 76ba0d3

Please sign in to comment.