Closed
Description
Describe the bug
Getting "InvalidOperationException: Attributes may only be added immediately after frames of type Element or Component" when add data-* attribute together with onclick handler on the same element:
To Reproduce
@page "/counter"
<p>Current count: @currentCount</p>
<button data-test=@("test") onclick="@IncrementCount">Click me</button>
@functions {
int currentCount = 0;
void IncrementCount()
{
currentCount++;
}
}
Expected behavior
...
<button data-test="test" ...
...
Hope this will help when release, but not sure.