Home > Software engineering >  Disable valid field coloring on Blazor InputSelect
Disable valid field coloring on Blazor InputSelect

Time:08-09

In an EditForm I've got an InputSelect dropdown list.

<InputSelect  style="width: 10%" @bind-Value="@testInt">
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    <option value="4">4</option>
    <option value="5">5</option>
    <option value="6">6</option>
</InputSelect>

@code {
    private int? testInt;
}

How to disable the border coloring after an item was chosen?

enter image description here

CodePudding user response:

is having a part in site.css

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

This governs the valid input, colors the outline of the InputSelect.

Solved with BennyBoy1973's suggestion.

  • Related