How do I make it so that it can not be written in the datepicker?

0

I am programmed to react and I am using a datepicker that I found on the internet and install it. The problem is that I do not want to be able to write the date in the input, only that the user can select the date through the calendar. For this I use disabled="true" but not only can not I write in the input but the calendar does not appear to choose the date.

    
asked by JLeOne 16.09.2017 в 04:01
source

2 answers

0

It is best to use the attribute readOnly = {true} or simply readOnly, check if the datepicker supports that, which allows you to put the read-only input, without blocking the input.

    
answered by 16.09.2017 / 04:39
source
0

If it's an input, add the readonly property:

<input readonly id="miId" name="miname"/> Intenta escribirme
    
answered by 16.09.2017 в 08:28