Enable input number component to support type='range' attribute
Enable input number component to support type='range' attribute
Summary of the changes
-
Modified the
InputNumbercomponent to allow the 'type' attribute specified by the user to take precedence over the default 'type="number"'. By swapping the order in which attributes are added to the builder, any user-defined 'type' attribute is now respected, enabling the usage of different input types like 'range'. -
Added a unit test to
InputNumberTeststo ensure the user definedtypeattribute overrides the default
Fixes #52067 by ensuring the type of the InputNumber component can be specified.
Thanks for your PR, @MattyLeslie. Someone from the team will get assigned to your PR shortly and we'll get it reviewed.
Commenter does not have sufficient privileges for PR 55583 in repo dotnet/aspnetcore
/azp run aspnetcore-ci
Azure Pipelines successfully started running 1 pipeline(s).
@MackinnonBuck, may I please request a review on this.