Xabaril/Esquio

FromToToggle throws exception if no To date specified

Closed this issue · 1 comments

I was expecting that this toggle would set some max date toggle if no date was provided. This unfortunately is not the case and it throws an exception.
System.Collections.Generic.KeyNotFoundException: The given key 'To' was not present in the dictionary.

Well, To is a required parameter and the UI will show a required validation if is not set!

[DesignTypeParameter(ParameterName = To, ParameterType = EsquioConstants.DATE_PARAMETER_TYPE, ParameterDescription = "The interval end (yyyy-MM-dd HH:mm:ss) when this toggle is activated.")]

I see your PR to set default DateTime.MaxValue for To parameter, let me some days (I'm on holidays) to checkout and review