File tree Expand file tree Collapse file tree
src/components/BootstrapBlazor.Region/Components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,14 +17,14 @@ public partial class SelectCity
1717
1818 private string ? InputId => $ "{ Id } _input";
1919
20- private string ? ClassString => CssBuilder . Default ( "select bb-region " )
20+ private string ? ClassString => CssBuilder . Default ( "select bb-city " )
2121 . AddClass ( "disabled" , IsDisabled )
2222 . AddClassFromAttributes ( AdditionalAttributes )
2323 . Build ( ) ;
2424
2525 private readonly HashSet < string > _values = [ ] ;
2626
27- private string ? GetActiveClass ( string item ) => _values . Contains ( item ) ? "active" : null ;
27+ private string ? GetActiveClass ( string item ) => _values . Contains ( item ) || CurrentValue == item ? "active" : null ;
2828
2929 private async Task OnClearValue ( )
3030 {
Original file line number Diff line number Diff line change 1- .dropdown-menu {
1+ .bb-city {
2+ position : relative;
3+ }
4+
5+ .bb-city : not (.disabled ): hover .form-select-append {
6+ display : none;
7+ }
8+
9+ .dropdown-menu {
210 --bs-dropdown-padding-y : .5rem ;
311 --bs-dropdown-padding-x : .5rem ;
412 max-width : 400px ;
You can’t perform that action at this time.
0 commit comments