From 951365bac36b7f2bf008d4f784f0190bb4cfbaa5 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Fri, 15 Nov 2024 06:42:23 +0700 Subject: [PATCH] Fix the input value --- package-lock.json | 4 ++-- package.json | 2 +- src/components/Input/Input.tsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6495116..b18461f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@codex-storage/marketplace-ui-components", - "version": "0.0.43", + "version": "0.0.44", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@codex-storage/marketplace-ui-components", - "version": "0.0.43", + "version": "0.0.44", "license": "MIT", "dependencies": { "lucide-react": "^0.453.0" diff --git a/package.json b/package.json index 5d796a8..b6c9119 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "type": "git", "url": "https://github.com/codex-storage/codex-marketplace-ui-components" }, - "version": "0.0.43", + "version": "0.0.44", "type": "module", "scripts": { "prepack": "npm run build", diff --git a/src/components/Input/Input.tsx b/src/components/Input/Input.tsx index 1790079..3adf293 100644 --- a/src/components/Input/Input.tsx +++ b/src/components/Input/Input.tsx @@ -102,7 +102,7 @@ export const Input = forwardRef( "aria-invalid": invalid || isInvalid, })} {...rest} - {...(value ? { value } : {})} + value={value || ""} />