Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to hide the popup calendar of <input type="date"> in Firefox?

In Firefox, input type="date" brings a calendar popup on click.Apart from preventing the default behaviour on click, I haven't found a way to hide the calendar. I don't want to use type='text' either.

Is there any way to hide this popup calendar in Firefox?

popup Image

like image 788
Marcos Avatar asked Oct 15 '25 15:10

Marcos


1 Answers

If you prevent the default action for the onClick handler, the popup is not shown on Firefox.

<input type="date" onClick="event.preventDefault()" />
like image 172
Tuomas Artman Avatar answered Oct 17 '25 06:10

Tuomas Artman