From 35d4533486f50293606fdb8ccc608388c0165a1b Mon Sep 17 00:00:00 2001 From: Vincent Baaij Date: Mon, 14 Oct 2024 15:11:19 +0200 Subject: [PATCH] Fix #2803 by not using current-value but value --- .../NumberField/FluentNumberField.razor | 2 +- .../NumberField/FluentNumberField.razor.cs | 1 + ...berField_AdditionalParameter.verified.html | 2 +- ...erField_AdditionalParameters.verified.html | 2 +- ...d_AppearanceParameter-Filled.verified.html | 2 +- ..._AppearanceParameter-Outline.verified.html | 2 +- ...mberField_AutoFocusParameter.verified.html | 2 +- ...ntNumberField_ClassParameter.verified.html | 2 +- ...umberField_DataListParameter.verified.html | 2 +- ...ts.FluentNumberField_Default.verified.html | 2 +- ...umberField_DisabledParameter.verified.html | 2 +- ...umberField_HideStepParameter.verified.html | 2 +- ...luentNumberField_IdParameter.verified.html | 2 +- ...ests.FluentNumberField_Label.verified.html | 2 +- ...entNumberField_LabelTemplate.verified.html | 2 +- ...mberField_MaxLengthParameter.verified.html | 2 +- ...uentNumberField_MaxParameter.verified.html | 2 +- ...mberField_MinLengthParameter.verified.html | 2 +- ...uentNumberField_MinParameter.verified.html | 2 +- ...entNumberField_NameParameter.verified.html | 2 +- ...erField_PlaceholderParameter.verified.html | 2 +- ...umberField_ReadOnlyParameter.verified.html | 2 +- ...umberField_RequiredParameter.verified.html | 2 +- ...entNumberField_SizeParameter.verified.html | 2 +- ...entNumberField_StepParameter.verified.html | 2 +- ...ntNumberField_StyleParameter.verified.html | 2 +- ...textIsInValid_OnFinish.verified.razor.html | 20 +++++++++---------- ...ontextIsInValid_OnNext.verified.razor.html | 18 ++++++++--------- ...orm_EditContextIsValid.verified.razor.html | 20 +++++++++---------- 29 files changed, 55 insertions(+), 54 deletions(-) diff --git a/src/Core/Components/NumberField/FluentNumberField.razor b/src/Core/Components/NumberField/FluentNumberField.razor index 222dd08cae..e641871d16 100644 --- a/src/Core/Components/NumberField/FluentNumberField.razor +++ b/src/Core/Components/NumberField/FluentNumberField.razor @@ -24,7 +24,7 @@ max="@(ReadOnly ? value : Max)" min="@(ReadOnly ? value : Min)" id=@Id - current-value="@value" + value="@value" disabled="@Disabled" name=@Name required="@Required" diff --git a/src/Core/Components/NumberField/FluentNumberField.razor.cs b/src/Core/Components/NumberField/FluentNumberField.razor.cs index 4f3f502f9d..1543815bfc 100644 --- a/src/Core/Components/NumberField/FluentNumberField.razor.cs +++ b/src/Core/Components/NumberField/FluentNumberField.razor.cs @@ -102,6 +102,7 @@ private static string GetStepAttributeValue() // of it for us. We will only get asked to parse the T for nonempty inputs. var targetType = Nullable.GetUnderlyingType(typeof(TValue)) ?? typeof(TValue); if (targetType == typeof(sbyte) || + targetType == typeof(byte) || targetType == typeof(int) || targetType == typeof(long) || targetType == typeof(short) || diff --git a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_AdditionalParameter.verified.html b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_AdditionalParameter.verified.html index e48fdba2cb..c7a1f050c5 100644 --- a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_AdditionalParameter.verified.html +++ b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_AdditionalParameter.verified.html @@ -1,2 +1,2 @@ -100 \ No newline at end of file +100 \ No newline at end of file diff --git a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_AdditionalParameters.verified.html b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_AdditionalParameters.verified.html index 159b07e0e0..a10dfdc0cf 100644 --- a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_AdditionalParameters.verified.html +++ b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_AdditionalParameters.verified.html @@ -1,2 +1,2 @@ -100 \ No newline at end of file +100 \ No newline at end of file diff --git a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_AppearanceParameter-Filled.verified.html b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_AppearanceParameter-Filled.verified.html index 72b29a1a2a..28f793a449 100644 --- a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_AppearanceParameter-Filled.verified.html +++ b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_AppearanceParameter-Filled.verified.html @@ -1,2 +1,2 @@ -100 \ No newline at end of file +100 \ No newline at end of file diff --git a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_AppearanceParameter-Outline.verified.html b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_AppearanceParameter-Outline.verified.html index f8e8947210..058933242e 100644 --- a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_AppearanceParameter-Outline.verified.html +++ b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_AppearanceParameter-Outline.verified.html @@ -1,2 +1,2 @@ -100 \ No newline at end of file +100 \ No newline at end of file diff --git a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_AutoFocusParameter.verified.html b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_AutoFocusParameter.verified.html index 550112913d..330cff173e 100644 --- a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_AutoFocusParameter.verified.html +++ b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_AutoFocusParameter.verified.html @@ -1,2 +1,2 @@ -100 \ No newline at end of file +100 \ No newline at end of file diff --git a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_ClassParameter.verified.html b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_ClassParameter.verified.html index 874af5e450..006a594a43 100644 --- a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_ClassParameter.verified.html +++ b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_ClassParameter.verified.html @@ -1,2 +1,2 @@ -100 \ No newline at end of file +100 \ No newline at end of file diff --git a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_DataListParameter.verified.html b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_DataListParameter.verified.html index 3c9644a776..4519c2a639 100644 --- a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_DataListParameter.verified.html +++ b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_DataListParameter.verified.html @@ -1,2 +1,2 @@ -100 \ No newline at end of file +100 \ No newline at end of file diff --git a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_Default.verified.html b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_Default.verified.html index f8e8947210..058933242e 100644 --- a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_Default.verified.html +++ b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_Default.verified.html @@ -1,2 +1,2 @@ -100 \ No newline at end of file +100 \ No newline at end of file diff --git a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_DisabledParameter.verified.html b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_DisabledParameter.verified.html index ffe0d8c5c1..bde1428830 100644 --- a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_DisabledParameter.verified.html +++ b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_DisabledParameter.verified.html @@ -1,2 +1,2 @@ -100 \ No newline at end of file +100 \ No newline at end of file diff --git a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_HideStepParameter.verified.html b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_HideStepParameter.verified.html index 484c19f69f..cb76d344ef 100644 --- a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_HideStepParameter.verified.html +++ b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_HideStepParameter.verified.html @@ -1,2 +1,2 @@ -100 \ No newline at end of file +100 \ No newline at end of file diff --git a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_IdParameter.verified.html b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_IdParameter.verified.html index f8e8947210..058933242e 100644 --- a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_IdParameter.verified.html +++ b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_IdParameter.verified.html @@ -1,2 +1,2 @@ -100 \ No newline at end of file +100 \ No newline at end of file diff --git a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_Label.verified.html b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_Label.verified.html index 1e081bc825..1f29fb5c8e 100644 --- a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_Label.verified.html +++ b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_Label.verified.html @@ -1,4 +1,4 @@ -100 \ No newline at end of file +100 \ No newline at end of file diff --git a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_LabelTemplate.verified.html b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_LabelTemplate.verified.html index f646444463..01fdd58fce 100644 --- a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_LabelTemplate.verified.html +++ b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_LabelTemplate.verified.html @@ -2,4 +2,4 @@ -100 \ No newline at end of file +100 \ No newline at end of file diff --git a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_MaxLengthParameter.verified.html b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_MaxLengthParameter.verified.html index 58c0f23e1c..dd65fade40 100644 --- a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_MaxLengthParameter.verified.html +++ b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_MaxLengthParameter.verified.html @@ -1,2 +1,2 @@ -100 \ No newline at end of file +100 \ No newline at end of file diff --git a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_MaxParameter.verified.html b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_MaxParameter.verified.html index 9176889d6d..1563643994 100644 --- a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_MaxParameter.verified.html +++ b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_MaxParameter.verified.html @@ -1,2 +1,2 @@ -100 \ No newline at end of file +100 \ No newline at end of file diff --git a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_MinLengthParameter.verified.html b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_MinLengthParameter.verified.html index 793d85fd0f..e36e64c25c 100644 --- a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_MinLengthParameter.verified.html +++ b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_MinLengthParameter.verified.html @@ -1,2 +1,2 @@ -100 \ No newline at end of file +100 \ No newline at end of file diff --git a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_MinParameter.verified.html b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_MinParameter.verified.html index d0a6509256..41d61da637 100644 --- a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_MinParameter.verified.html +++ b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_MinParameter.verified.html @@ -1,2 +1,2 @@ -100 \ No newline at end of file +100 \ No newline at end of file diff --git a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_NameParameter.verified.html b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_NameParameter.verified.html index 2b375ed994..557031e522 100644 --- a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_NameParameter.verified.html +++ b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_NameParameter.verified.html @@ -1,2 +1,2 @@ -100 \ No newline at end of file +100 \ No newline at end of file diff --git a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_PlaceholderParameter.verified.html b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_PlaceholderParameter.verified.html index 8faedfc6ff..035abfdd0a 100644 --- a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_PlaceholderParameter.verified.html +++ b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_PlaceholderParameter.verified.html @@ -1,2 +1,2 @@ -100 \ No newline at end of file +100 \ No newline at end of file diff --git a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_ReadOnlyParameter.verified.html b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_ReadOnlyParameter.verified.html index 83d83b4c93..a151804313 100644 --- a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_ReadOnlyParameter.verified.html +++ b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_ReadOnlyParameter.verified.html @@ -1,2 +1,2 @@ -100 \ No newline at end of file +100 \ No newline at end of file diff --git a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_RequiredParameter.verified.html b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_RequiredParameter.verified.html index 955c7776b5..c6d4c72bd7 100644 --- a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_RequiredParameter.verified.html +++ b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_RequiredParameter.verified.html @@ -1,2 +1,2 @@ -100 \ No newline at end of file +100 \ No newline at end of file diff --git a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_SizeParameter.verified.html b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_SizeParameter.verified.html index 42fb1a43f8..67d4ea994a 100644 --- a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_SizeParameter.verified.html +++ b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_SizeParameter.verified.html @@ -1,2 +1,2 @@ -100 \ No newline at end of file +100 \ No newline at end of file diff --git a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_StepParameter.verified.html b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_StepParameter.verified.html index 7038d22d9b..da3bba2b68 100644 --- a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_StepParameter.verified.html +++ b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_StepParameter.verified.html @@ -1,2 +1,2 @@ -100 \ No newline at end of file +100 \ No newline at end of file diff --git a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_StyleParameter.verified.html b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_StyleParameter.verified.html index 0827703343..8891296594 100644 --- a/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_StyleParameter.verified.html +++ b/tests/Core/NumberField/FluentNumberFieldTests.FluentNumberField_StyleParameter.verified.html @@ -1,2 +1,2 @@ -100 \ No newline at end of file +100 \ No newline at end of file diff --git a/tests/Core/Wizard/FluentWizardTests.FluentWizard_EditForm_EditContextIsInValid_OnFinish.verified.razor.html b/tests/Core/Wizard/FluentWizardTests.FluentWizard_EditForm_EditContextIsInValid_OnFinish.verified.razor.html index c686c1e3b7..072433a178 100644 --- a/tests/Core/Wizard/FluentWizardTests.FluentWizard_EditForm_EditContextIsInValid_OnFinish.verified.razor.html +++ b/tests/Core/Wizard/FluentWizardTests.FluentWizard_EditForm_EditContextIsInValid_OnFinish.verified.razor.html @@ -1,9 +1,9 @@
    -
  1. +
  2. -
    @@ -12,9 +12,9 @@

-
  • +
  • -
    @@ -26,24 +26,24 @@
    -
    - + +
    -
    +
    • The field NumberBetween1and10 must be between 1 and 10.
    - +
    - Previous + Previous - Done + Done
    \ No newline at end of file diff --git a/tests/Core/Wizard/FluentWizardTests.FluentWizard_EditForm_EditContextIsInValid_OnNext.verified.razor.html b/tests/Core/Wizard/FluentWizardTests.FluentWizard_EditForm_EditContextIsInValid_OnNext.verified.razor.html index 60c3852be8..20b8b55b94 100644 --- a/tests/Core/Wizard/FluentWizardTests.FluentWizard_EditForm_EditContextIsInValid_OnNext.verified.razor.html +++ b/tests/Core/Wizard/FluentWizardTests.FluentWizard_EditForm_EditContextIsInValid_OnNext.verified.razor.html @@ -1,9 +1,9 @@
      -
    1. +
    2. -
      @@ -12,9 +12,9 @@

  • -
  • +
  • -
    @@ -26,23 +26,23 @@
    -
    +
    • The field NumberBetween1and10 must be between 1 and 10.
    - +
    -
    - + +
    - Next + Next
    \ No newline at end of file diff --git a/tests/Core/Wizard/FluentWizardTests.FluentWizard_EditForm_EditContextIsValid.verified.razor.html b/tests/Core/Wizard/FluentWizardTests.FluentWizard_EditForm_EditContextIsValid.verified.razor.html index f8f68a27eb..1d182783ff 100644 --- a/tests/Core/Wizard/FluentWizardTests.FluentWizard_EditForm_EditContextIsValid.verified.razor.html +++ b/tests/Core/Wizard/FluentWizardTests.FluentWizard_EditForm_EditContextIsValid.verified.razor.html @@ -1,9 +1,9 @@
      -
    1. +
    2. -
      @@ -12,9 +12,9 @@

  • -
  • +
  • -
    @@ -26,19 +26,19 @@
    -
    - + +
    -
    - + +
    - Previous + Previous - Done + Done
    \ No newline at end of file