This repository was archived by the owner on Dec 3, 2024. It is now read-only.
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
Uh oh!
There was an error while loading. Please reload this page.
-
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