Skip to content

Commit

Permalink
Merge pull request #406 from FlowiseAI/bugfix/InputNumber
Browse files Browse the repository at this point in the history
Bugfix/Input Number
  • Loading branch information
HenryHengZJ authored Jun 24, 2023
2 parents 554c0a9 + 40662b0 commit f475594
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 f475594

Please sign in to comment.