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}
|
step={sizeStep}
|
||||||
min={sizeStep}
|
min={sizeStep}
|
||||||
data-testid="order-size"
|
data-testid="order-size"
|
||||||
|
onWheel={(e) => e.currentTarget.blur()}
|
||||||
{...register('size', {
|
{...register('size', {
|
||||||
required: true,
|
required: true,
|
||||||
min: sizeStep,
|
min: sizeStep,
|
||||||
@ -48,6 +49,7 @@ export const DealTicketLimitAmount = ({
|
|||||||
type="number"
|
type="number"
|
||||||
step={priceStep}
|
step={priceStep}
|
||||||
data-testid="order-price"
|
data-testid="order-price"
|
||||||
|
onWheel={(e) => e.currentTarget.blur()}
|
||||||
{...register('price', {
|
{...register('price', {
|
||||||
required: true,
|
required: true,
|
||||||
min: 0,
|
min: 0,
|
||||||
|
@ -25,6 +25,7 @@ export const DealTicketMarketAmount = ({
|
|||||||
type="number"
|
type="number"
|
||||||
step={sizeStep}
|
step={sizeStep}
|
||||||
min={sizeStep}
|
min={sizeStep}
|
||||||
|
onWheel={(e) => e.currentTarget.blur()}
|
||||||
data-testid="order-size"
|
data-testid="order-size"
|
||||||
{...register('size', {
|
{...register('size', {
|
||||||
required: true,
|
required: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user