1

Could you help me, how can I prevent scrolling the number an input number field in Angular? I use it with material.

Thanks, Gábor

Edric
  • 24,639
  • 13
  • 81
  • 91
geebacsi
  • 135
  • 2
  • 10
  • 2
    What do you mean by *input number scrolling*? Please [include your code](https://stackoverflow.com/help/mcve) – Nino Filiu Mar 04 '19 at 19:24
  • I mean when the mouse is in the input field which type is number, I can scroll with my mouse wheel, and it decreases or increases the value. It is not a good thing, because when the user "forget" the mouse in the field, it changes the value instead of scroll the page – geebacsi Mar 04 '19 at 19:44
  • 1
    Please review this article on how to write a good SO question. https://stackoverflow.com/help/how-to-ask. Also, I believe what you're after is https://stackoverflow.com/questions/3790935/can-i-hide-the-html5-number-input-s-spin-box – Nathan Beck Mar 04 '19 at 20:06
  • Thank you for your answer, but I have found the css way, but it only removes the arrows, and the scrolling is also working now. – geebacsi Mar 05 '19 at 03:22

0 Answers0