Skip to content

Commit

Permalink
Numeric inputmode attribute support fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
enchev committed Sep 9, 2024
1 parent c647515 commit 332b452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Radzen.Blazor/RadzenNumeric.razor
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
@if (Visible)
{
<span @ref="@Element" style="@Style" @attributes="Attributes" class="@GetCssClass()" id="@GetId()">
<input @ref="@input" @attributes="InputAttributes" type="text" inputmode="decimal" name="@Name" disabled="@Disabled" readonly="@ReadOnly"
<input @ref="@input" @attributes="InputAttributes" type="text" inputmode="@(Attributes?.ContainsKey("inputmode") == true ? (string)Attributes["inputmode"] : "decimal")" name="@Name" disabled="@Disabled" readonly="@ReadOnly"
class="@GetInputCssClass()" tabindex="@(Disabled ? "-1" : $"{TabIndex}")" id="@Name"
placeholder="@CurrentPlaceholder" autocomplete="@AutoCompleteAttribute" aria-autocomplete="@AriaAutoCompleteAttribute" value="@FormattedValue" @onchange="@OnChange"
onkeypress="Radzen.numericKeyPress(event, @IsInteger().ToString().ToLower(), '@Culture.NumberFormat.NumberDecimalSeparator')"
Expand Down

0 comments on commit 332b452

Please sign in to comment.