Changes the default from BasePeriod to chosen type in the Duration Picker Component.
BasePeriod
The type must be a sub-type of BasePeriod.
type