vikramlearning / blazorbootstrap

An Enterprise-class Blazor Bootstrap Component library built on the Blazor and Bootstrap CSS frameworks.
https://docs.blazorbootstrap.com/
Apache License 2.0
795 stars 46 forks source link

Dropdown: Documentation not up to date #865

Closed Crashdummyy closed 3 months ago

Crashdummyy commented 3 months ago

Describe the bug Your current Documentation is not correct anymore. Tne dropdown doesnt work after ParameterSet

To Reproduce

    <Dropdown>
        <DropdownToggleButton Color="ButtonColor.Primary">Primary</DropdownToggleButton>
        <DropdownMenu>
            <DropdownItem To="#" Type="ButtonType.Link">Action</DropdownItem>
            <DropdownItem To="#" Type="ButtonType.Link">Another action</DropdownItem>
            <DropdownItem To="#" Type="ButtonType.Link">Something else here</DropdownItem>
        </DropdownMenu>
    </Dropdown>

Expected behavior It appears like Color migrated to a CascadingParameter

    <Dropdown Color="DropdownColor.Primary">
        <DropdownToggleButton>Primary</DropdownToggleButton>
        <DropdownMenu>
            <DropdownItem To="#" Type="ButtonType.Link">Action</DropdownItem>
            <DropdownItem To="#" Type="ButtonType.Link">Another action</DropdownItem>
            <DropdownItem To="#" Type="ButtonType.Link">Something else here</DropdownItem>
        </DropdownMenu>
    </Dropdown>

Screenshots image

Versions (please complete the following information):

Desktop (please complete the following information):

gvreddy04 commented 3 months ago

@Crashdummyy Thank you for reporting this. We will fix this.

Crashdummyy commented 3 months ago

Thanks for the fast fix :)