Skip to content

Commit

Permalink
Merge pull request #14 from 0phois/Code-Cleanup
Browse files Browse the repository at this point in the history
code cleanup
  • Loading branch information
Anu6is authored Oct 21, 2024
2 parents de2999e + f7d6671 commit 1f72c4a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/Components/MudStaticButton.razor
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ else
{
return@<input type="hidden" name="ReturnUrl" value="@ReturnUrl" />;
}

return null;
}
}
6 changes: 3 additions & 3 deletions src/Components/MudStaticCheckBox.razor
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<label class="@LabelClassname" id="@($"checkbox-container-{_elementId}")" @onclick:stopPropagation="@StopClickPropagation">
<span tabindex="0" class="@CheckBoxClassname">
<input type="hidden" id="@($"empty-checkbox-{_elementId}")" name="@(_checkboxValue ? "" : _name)" value="False" />
<input tabindex="-1" @attributes="@UserAttributes" type="checkbox" class="mud-checkbox-input" name="@(_checkboxValue ? _name : "")" value="True"
aria-checked="@_checkboxValue.ToString().ToLower()" aria-readonly="@(GetDisabledState().ToString().ToLower())"
<input tabindex="-1" @attributes="@UserAttributes" type="checkbox" class="mud-checkbox-input" name="@(_checkboxValue ? _name : "")"
value="True" aria-checked="@_checkboxValue.ToString().ToLower()" aria-readonly="@(GetDisabledState().ToString().ToLower())"
id="@($"static-checkbox-{_elementId}")" disabled="@GetDisabledState()" @onclick:preventDefault="@GetReadOnlyState()"/>
<MudIcon Icon="@CheckedIcon" Color="HasErrors ? Color.Error : this.Color" Size="@Size"
id="@($"check-icon-{_elementId}")" style="@($"display: {_checkedStyle}")"/>
Expand Down Expand Up @@ -98,4 +98,4 @@
}
});
})();
</script>
</script>
4 changes: 2 additions & 2 deletions src/Components/MudStaticSwitch.razor
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<span tabindex="0" class="@SwitchClassname" id="@($"switch-container-{_elementId}")">
<span class="mud-switch-button">
<input type="hidden" id="@($"empty-switch-{_elementId}")" name="@(_switchValue ? "" : _name)" value="False" />
<input tabindex="-1" @attributes="@UserAttributes" type="checkbox" class="mud-switch-input" name="@(_switchValue ? _name : "")" value="True"
aria-checked="@_switchValue.ToString().ToLower()" aria-readonly="@(GetDisabledState().ToString().ToLower())"
<input tabindex="-1" @attributes="@UserAttributes" type="checkbox" class="mud-switch-input" name="@(_switchValue ? _name : "")"
value="True" aria-checked="@_switchValue.ToString().ToLower()" aria-readonly="@(GetDisabledState().ToString().ToLower())"
id="@($"static-switch-{_elementId}")" disabled="@GetDisabledState()" @onclick:preventDefault="@GetReadOnlyState()"/>
<span class="@ThumbClassname">
@if (!string.IsNullOrEmpty(ThumbIcon))
Expand Down

0 comments on commit 1f72c4a

Please sign in to comment.