score:1

which version of material-ui are you using ?

by reading the doc you see that

onchange callback function that is fired when the date value changes. since there is no particular event associated with the change the first argument will always be null and the second argument will be the new date instance.

you should try adding a second param to your callbacks.

score:1

your onchange handler functions should take two parameters: event and date, where event is always null and date is the new date object.

_handlestartinput: function(event, date) {
    var currentstate = this.state;
    currentstate.startdate = date;
    this.setstate(currentstate);
},

_handleendinput: function(event, date) {
    var currentstate = this.state;
    currentstate.enddate = date;
    this.setstate(currentstate);
}

score:4

i tried this and i paint the console value

<datepicker  container="inline" floatinglabeltext="fecha desde" onchange={(x, event) => this.setfechadesde(x,event)}    defaultdate={new date()} />

and

setfechadesde(x,event){
        console.log(json.stringify(event));
        console.log(json.stringify(x));
    }

Related Query

More Query from same tag