Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4046

Blazor server - Fluent UI - Set focus to a FluentDatePicker

$
0
0

I can set focus to a FluentTextField:

  • Use a @ref: @ref=myFluentTextField

  • Declare it as a FluentTextField:FluentTextField? nombreFluentTextField;

  • Set focus:

    protected override void OnAfterRender(bool firstRender) { nombreFluentTextField?.FocusAsync(); }

If I try to do the same with a FluentDatePicker, I get this error in the console:

ElementReference has not been configured correctly.

So, the question is: how to set focus from code to a FluentDatePicker?

Many thanks and bye ...


Viewing all articles
Browse latest Browse all 4046

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>