2

I tried to disable-hide the clear button and didn't work for Firefox.

But on Chrome, Edge, Safari it works fine. Any idea why? Is there a solution?

Following is the CSS:

input[type="time"]::-webkit-clear-button {
  display: none;
}

See the Image of output

  • already answer here - https://stackoverflow.com/questions/19655250/is-it-possible-to-disable-input-time-clear-button – Luís P. A. Mar 10 '20 at 14:49
  • Does this answer your question? [Is it possible to disable input=time clear button](https://stackoverflow.com/questions/19655250/is-it-possible-to-disable-input-time-clear-button) – Mr T Mar 10 '20 at 15:11
  • yeah, i already found that question before, but i didn't get any answer why in firefox doesn't work, or how can i make it – Benjamin Golya Mar 10 '20 at 15:12

2 Answers2

4

<input type="time" required> hides the reset button.

Source: I reviewed https://bugzilla.mozilla.org/show_bug.cgi?id=1479708. :)

-2

You can try this

input[type="time"]::-webkit-clear-button {
    -webkit-appearance: none; 
    -moz-appearance: none;
    appearance: none;
}
Milan Zaveri
  • 90
  • 1
  • 3