Skip to content

Commit

Permalink
add fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryHengZJ committed Jun 24, 2023
1 parent 554c0a9 commit 40662b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/ui/src/ui-component/input/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export const Input = ({ inputParam, value, onChange, disabled = false, showDialo
onChange(e.target.value)
}}
inputProps={{
step: 0.1,
style: {
height: inputParam.rows ? '90px' : 'inherit'
}
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/views/canvas/NodeInputHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ const NodeInputHandler = ({ inputAnchor, inputParam, data, disabled = false, isA
)}
{(inputParam.type === 'string' || inputParam.type === 'password' || inputParam.type === 'number') && (
<Input
key={data.inputs[inputParam.name]}
disabled={disabled}
inputParam={inputParam}
onChange={(newValue) => (data.inputs[inputParam.name] = newValue)}
Expand Down

0 comments on commit 40662b0

Please sign in to comment.