I have a datetimepicker
<SfDateTimePicker @ref="JourneyStartTime" TValue="DateTime?" Value="@DateTimeJourneyStart" Max="@MaxDate">
<DateTimePickerEvents TValue="DateTime?" ValueChange="onChangeJourneyStart"></DateTimePickerEvents>
</SfDateTimePicker >
Relevent declarations are:
SfDateTimePicker<DateTime?> JourneyStartTime;
private DateTime MaxDate { get; set; } =DateTime.Now;
and
public void onChangeJourneyStart(ChangedEventArgs<DateTime?> args)
{
some code
}
If change the date in teh date time picker the event code
onChangeJourneyStart reputedly runs (even if the method is empty - I can tell by setting a breakpoint.
What is going on? many thanks