refactor: set a generic placeholder on float input (#3015)
* fix: set a generic placeholder on the float input * [autofix.ci] apply automated fixes * refactor: remove unnecessary validation --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: anovazzi1 <otavio2204@gmail.com>
This commit is contained in:
parent
9903b4408f
commit
0fcba55f51
1 changed files with 1 additions and 5 deletions
|
|
@ -40,11 +40,7 @@ export default function FloatComponent({
|
||||||
value={value ?? ""}
|
value={value ?? ""}
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
className={editNode ? "input-edit-node" : ""}
|
className={editNode ? "input-edit-node" : ""}
|
||||||
placeholder={
|
placeholder={`Enter a value`}
|
||||||
editNode
|
|
||||||
? `Enter a value between ${min} and ${max}`
|
|
||||||
: `Enter a value between ${min} and ${max}`
|
|
||||||
}
|
|
||||||
onChange={(event) => {
|
onChange={(event) => {
|
||||||
onChange(event.target.value);
|
onChange(event.target.value);
|
||||||
}}
|
}}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue