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
670 stars 32 forks source link

Autocomplete component: Disabled property not updating #167

Closed giarico closed 1 year ago

giarico commented 1 year ago

Hello, When i assign a variable (or a condition) to the "Disabled" property, if the value changes the Disabled property doesn't change accordingly.

Example: <input type="checkbox" @bind="disabled" /> <AutoComplete @bind-Value="productDisplayName" TItem="ProductDTO" DataProvider="ProductDataProvider" PropertyName="DisplayName" Placeholder="Type to search..." OnChanged="(ProductDTO item) => OnProductChanged(item)" Disabled="@disabled" />

gvreddy04 commented 1 year ago

@giarico You can now follow CurrencyInput, TimeInput, and other examples where we documented how to disable the control.

Currency Input: https://demos.blazorbootstrap.com/form/currency-input#disable Time Input: https://demos.blazorbootstrap.com/form/time-input#disable

image

In the next release, we will update the documentation for this component. And will make the disable feature more consistent for all the form components. Also, we support both the method and property.

giarico commented 1 year ago

Thank you for the help!