Skip to content

Commit c1fe2ff

Browse files
jamespleaseCompuIves
authored andcommitted
Add minimum value to the PriceInput (#1201)
Presently, users can enter invalid values, such as -10, by using the native browser controls associated with inputs with a type of "number"
1 parent 79905c0 commit c1fe2ff

File tree

1 file changed

+1
-0
lines changed
  • packages/app/src/app/pages/Patron/PricingModal/PricingChoice

1 file changed

+1
-0
lines changed

packages/app/src/app/pages/Patron/PricingModal/PricingChoice/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ function PricingChoice({ store, signals, badge }) {
3939
signals.patron.priceChanged({ price: Number(event.target.value) })
4040
}
4141
value={store.patron.price}
42+
min={5}
4243
type="number"
4344
/>
4445
<Month>/month</Month>

0 commit comments

Comments
 (0)