How to set focus to TypeAhead #302
MilesGibson
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How do I set focus to TypeAhead? It does not like this:
` BlazoredTypeahead<string,string> myTypeAhead { get; set; } // it wanted a TItem,TValue so put string in here.
protected override void OnAfterRender(bool firstRender)
{
if (firstRender)
{
myTypeAhead?.FocusAsync(); // barfs on this line.
}
base.OnAfterRender(firstRender);
Beta Was this translation helpful? Give feedback.
All reactions