Skip to content

Commit

Permalink
fix(blazorui): correct capitalization of IsReadOnly in BitTextField #…
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamyab7 authored Nov 25, 2023
1 parent 6b1b47b commit 12a8634
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public void BitTextFieldShouldTakeBaseParameters(int maxLength, bool isMultiline
parameters.Add(p => p.MaxLength, maxLength);
parameters.Add(p => p.IsMultiline, isMultiline);
parameters.Add(p => p.Placeholder, placeholder);
parameters.Add(p => p.IsReadonly, isReadOnly);
parameters.Add(p => p.IsReadOnly, isReadOnly);
});

var bitTextField = component.Find(".bit-txt-inp");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
IsMultiline="IsMultiline"
Type="Type"
Placeholder="@Placeholder"
IsReadonly="IsReadOnly"
IsReadOnly="IsReadOnly"
IsRequired="IsRequired"
IsEnabled="IsEnabled"
IconName="@IconName"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
class="bit-txt-inp @Classes?.Input"
disabled=@(IsEnabled is false)
rows="@Rows"
readonly=@IsReadonly
readonly=@IsReadOnly
required=@IsRequired
maxlength="@MaxLength"
placeholder="@Placeholder"
Expand All @@ -78,7 +78,7 @@
style="@Styles?.Input"
class="bit-txt-inp @Classes?.Input"
disabled=@(IsEnabled is false)
readonly=@IsReadonly
readonly=@IsReadOnly
required=@IsRequired
type="@_inputType"
value="@CurrentValue"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public partial class BitTextField
{
private bool hasBorder = true;
private bool isMultiline;
private bool isReadonly;
private bool isReadOnly;
private bool isRequired;
private bool isUnderlined;
private bool isResizable = true;
Expand Down Expand Up @@ -93,14 +93,14 @@ public bool IsMultiline
/// If true, the text field is readonly.
/// </summary>
[Parameter]
public bool IsReadonly
public bool IsReadOnly
{
get => isReadonly;
get => isReadOnly;
set
{
if (isReadonly == value) return;
if (isReadOnly == value) return;

isReadonly = value;
isReadOnly = value;
ClassBuilder.Reset();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<br />
<BitTextField Label="Disabled" IsEnabled="false" />
<br />
<BitTextField Label="Readonly" IsReadonly="true" />
<BitTextField Label="ReadOnly" IsReadOnly="true" />
<br />
<BitTextField Label="Description" Description="This is Description" />
<br />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public partial class BitTextFieldDemo
},
new()
{
Name = "IsReadonly",
Name = "IsReadOnly",
Type = "bool",
DefaultValue = "false",
Description = "If true, the text field is readonly.",
Expand Down Expand Up @@ -453,7 +453,7 @@ private void HandleInvalidSubmit()
<BitTextField Label=""Basic"" />
<BitTextField Label=""Placeholder"" Placeholder=""Enter a text..."" />
<BitTextField Label=""Disabled"" IsEnabled=""false"" />
<BitTextField Label=""Readonly"" IsReadonly=""true"" />
<BitTextField Label=""ReadOnly"" IsReadOnly=""true"" />
<BitTextField Label=""Description"" Description=""This is Description"" />
<BitTextField Label=""IsRequired"" IsRequired=""true"" />
<BitTextField Label=""MaxLength: 5"" MaxLength=""5"" />
Expand Down

0 comments on commit 12a8634

Please sign in to comment.