feat: disable scrolling to change value for size and price fields (#1584)
This commit is contained in:
parent
0a5a87f432
commit
219c9e1b41
@ -27,6 +27,7 @@ export const DealTicketLimitAmount = ({
|
||||
step={sizeStep}
|
||||
min={sizeStep}
|
||||
data-testid="order-size"
|
||||
onWheel={(e) => e.currentTarget.blur()}
|
||||
{...register('size', {
|
||||
required: true,
|
||||
min: sizeStep,
|
||||
@ -48,6 +49,7 @@ export const DealTicketLimitAmount = ({
|
||||
type="number"
|
||||
step={priceStep}
|
||||
data-testid="order-price"
|
||||
onWheel={(e) => e.currentTarget.blur()}
|
||||
{...register('price', {
|
||||
required: true,
|
||||
min: 0,
|
||||
|
@ -25,6 +25,7 @@ export const DealTicketMarketAmount = ({
|
||||
type="number"
|
||||
step={sizeStep}
|
||||
min={sizeStep}
|
||||
onWheel={(e) => e.currentTarget.blur()}
|
||||
data-testid="order-size"
|
||||
{...register('size', {
|
||||
required: true,
|
||||
|
Loading…
Reference in New Issue
Block a user