material ui - Datepicker persistent -


i use following code datepicker component:

<datepicker    hinttext="return on"    autook={true}    fullwidth={true}    onchange={(e, val) => this.setarrivaldate(val)} /> 

setarrivaldate method (action) in mobx store, sets

this.userinput.arrivaldate  

to given val.

i have clear button in form, triggers action in store well, set

this.unserinput.arrivaldate = '' 

using solution, displayed arrivaldate becomes persistant, since clear function of store triggers onchange event, automatically sets previous date.

any advice?


Comments

Popular posts from this blog

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

android - ConstraintLayout: Realign baseline constraint in case if dependent view visibility was set to GONE -

c# - Populating Gridview inside Listview ItemTemplate On Web User Control from Code Behind -