You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.
I have a scenario where I want to basically use it like an input box but have any close matches provided to the user, basically the same as #103 but I can see you added it in another way so it always gets added to the list.
Anyway the problem im having is that it doesnt seem to like me passing in a string as the Value, like here is an example of what I mean:
So this component wraps your component and basically just wants to be passed a string which is the value of the element and then a list of possible values for it to filter on.
The problem is while it does have the initial value there, no subsequent changes seem to get bubbled back out to the parent component, all the examples are using complex data but really im just after a simple ComboBox style element, but this is the closest one I can fine online.
I assumed that while it was bound maybe it wouldnt bubble up so I probably needed to expose an EventCallback<string> and then use the ValueChanged property of your control to propagate and changed the @bind-Value="Value" to Value="@Value", however whenever I do that I just get the error:
,"Value cannot be null. (Parameter \u0027accessor\u0027)"," at Microsoft.AspNetCore.Components.Forms.FieldIdentifier.Create[TField](Expression\u00601 accessor)\r\n at Blazored.Typeahead.Blazor
edTypeahead\u00602.OnInitialized()
Value definitely has a value as im showing it elsewhere on the containing page, so could anyone point me in the direction of where im going wrong or if this control cant be used this way.
Thanks!
The text was updated successfully, but these errors were encountered:
I have a scenario where I want to basically use it like an input box but have any close matches provided to the user, basically the same as #103 but I can see you added it in another way so it always gets added to the list.
Anyway the problem im having is that it doesnt seem to like me passing in a string as the Value, like here is an example of what I mean:
So this component wraps your component and basically just wants to be passed a string which is the value of the element and then a list of possible values for it to filter on.
The problem is while it does have the initial value there, no subsequent changes seem to get bubbled back out to the parent component, all the examples are using complex data but really im just after a simple
ComboBox
style element, but this is the closest one I can fine online.I assumed that while it was bound maybe it wouldnt bubble up so I probably needed to expose an
EventCallback<string>
and then use theValueChanged
property of your control to propagate and changed the@bind-Value="Value"
toValue="@Value"
, however whenever I do that I just get the error:Value definitely has a value as im showing it elsewhere on the containing page, so could anyone point me in the direction of where im going wrong or if this control cant be used this way.
Thanks!
The text was updated successfully, but these errors were encountered: