Hi
I am experiencing a strange issue and don't know if it's a bug or expected behavior.
I extended SfDatePicker so I can overwrite OnAfterRender function and add a FocusIn, so that the element gets focused when it renders.
However, this does NOT work on the very first page load.
After the initial load, I can navigate to another page, come back, and FocusIn seems to be working from now on.
Any clue why it doesn't work on initial load?
I attached a sample App.
Steps to reproduce:
- Load Application by pressing F5
- DatePicker is not focused
- Expected behavior: DatePicker is focused
Current workaround:
- Load Application by pressing F5
- Navigate AWAY from page with DatePicker component
- Navigate to page with DatePicker component
- From now on it seems to be working 100% of the time
Any idea why this is happening? A bug or maybe I'm missing something?
Cheers,
Lazar
Attachment:
BlazorTestApp_81f3313f.zip