Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocomplete component: Disabled property not updating #167

Closed
giarico opened this issue Mar 24, 2023 · 2 comments
Closed

Autocomplete component: Disabled property not updating #167

giarico opened this issue Mar 24, 2023 · 2 comments

Comments

@giarico
Copy link

giarico commented Mar 24, 2023

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
Copy link
Contributor

@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
Copy link
Author

giarico commented Mar 24, 2023

Thank you for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants