reset min/max upon type change