The Wayback Machine - https://web.archive.org/web/20201101035801/https://github.com/dotnet/aspnetcore/issues/27133
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having an unclosed form above a code block turns everything blue #27133

Open
dibarbet opened this issue Oct 22, 2020 · 0 comments
Open

Having an unclosed form above a code block turns everything blue #27133

dibarbet opened this issue Oct 22, 2020 · 0 comments

Comments

@dibarbet
Copy link

@dibarbet dibarbet commented Oct 22, 2020

Describe the bug

I was creating a form and realized I needed to add a method to handle validation. So before closing it I went to add the method below. But all the code is blue. It seems like there might be some better handling of error-ed elements so it doesn't affect the code block.
image

To Reproduce

Create a new blazor web assembly app
Create an empty class called OrderModel
Add component called Orders.razor

@page "/orders"

<h1>Orders</h1>

<h3>Create Order</h3>

<EditForm Model="@OrderModel" OnValidSubmit="@HandleSubmit"

@code {


    private void HandleSubmit()
    {
        if (true){

        }
    }


}

Further technical details

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.