File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/BootstrapBlazor/Components/Dropdown Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 33@if (ChildContent != null )
44{
55 <div class =" @ItemClassString" >
6- @t. ChildContent
6+ @ChildContent
77 </div >
88}
99else
1010{
1111 <DynamicElement class =" @ItemClassString"
12- TriggerClick =" CanTriggerClick " OnClick =" OnClickItem" >
12+ TriggerClick =" !IsDisabled " OnClick =" OnClickItem" >
1313 <i class =" @ItemIconString" ></i >
1414 <span >@Text </span >
1515 </DynamicElement >
Original file line number Diff line number Diff line change @@ -51,10 +51,10 @@ public partial class DropdownItem
5151 . Build ( ) ;
5252
5353 private string ? ItemClassString => CssBuilder . Default ( "dropdown-item" )
54- . AddClass ( "disabled" , CanTriggerClick )
54+ . AddClass ( "disabled" , IsDisabled )
5555 . Build ( ) ;
5656
57- private bool CanTriggerClick => OnDisabledCallback ? . Invoke ( ) ?? Disabled ;
57+ private bool IsDisabled => OnDisabledCallback ? . Invoke ( ) ?? Disabled ;
5858
5959 private async Task OnClickItem ( )
6060 {
You can’t perform that action at this time.
0 commit comments