Skip to content

Commit ef79816

Browse files
siddarthan007thesolitary007willbouch
authored
fix(dashboard): Resolve issue with product attributes input (medusajs#13863)
Co-authored-by: Siddartha Nepal <[email protected]> Co-authored-by: William Bouchard <[email protected]>
1 parent 2eca81e commit ef79816

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.changeset/strange-ties-begin.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@medusajs/dashboard": patch
3+
---
4+
5+
Fixed a bug in product attributes form such that it now accepts decimal values

packages/admin/dashboard/src/routes/products/product-attributes/components/product-attributes-form/product-attributes-form.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ export const ProductAttributesForm = ({
101101
<Input
102102
type="number"
103103
min={0}
104+
step="any"
104105
value={value || ""}
105106
onChange={(e) => {
106107
const value = e.target.value
@@ -130,6 +131,7 @@ export const ProductAttributesForm = ({
130131
<Input
131132
type="number"
132133
min={0}
134+
step="any"
133135
value={value || ""}
134136
onChange={(e) => {
135137
const value = e.target.value
@@ -159,6 +161,7 @@ export const ProductAttributesForm = ({
159161
<Input
160162
type="number"
161163
min={0}
164+
step="any"
162165
value={value || ""}
163166
onChange={(e) => {
164167
const value = e.target.value
@@ -188,6 +191,7 @@ export const ProductAttributesForm = ({
188191
<Input
189192
type="number"
190193
min={0}
194+
step="any"
191195
value={value || ""}
192196
onChange={(e) => {
193197
const value = e.target.value

0 commit comments

Comments
 (0)