Describe the bug
When defining a callback for OnFocus on a MatTextField inside a MatTable, the text field is not focusable (immediately loses focus after focusing).
To Reproduce
- Create text field in table:
<MatTable Items="Items" ShowFooter="false" ShowPaging="false">
<MatTableHeader>
<th>Input</th>
</MatTableHeader>
<MatTableRow>
<td>
<MatTextField TValue="string" OnFocus="@(() => { })" />
</td>
</MatTableRow>
</MatTable>
@code {
private List<int> Items = new List<int> { 0 };
}
- click into the text field to focus it
- observe the immediate loss of focus
Blazorfiddle link
The above code does not show the issue when used on https://blazorfiddle.com/s/ms7z0yai, I suspect that versions are different.
Expected behavior
No loss of focus
Additional context
Version: 2.7.0-develop-017 and 2.6.2 are both affected
Describe the bug
When defining a callback for
OnFocuson aMatTextFieldinside aMatTable, the text field is not focusable (immediately loses focus after focusing).To Reproduce
Blazorfiddle link
The above code does not show the issue when used on https://blazorfiddle.com/s/ms7z0yai, I suspect that versions are different.
Expected behavior
No loss of focus
Additional context
Version: 2.7.0-develop-017 and 2.6.2 are both affected