File tree Expand file tree Collapse file tree 4 files changed +21
-6
lines changed Expand file tree Collapse file tree 4 files changed +21
-6
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,9 @@ <h2 class="bd-title">
23
23
24
24
< div >
25
25
< div class ="mb-3 row ">
26
- < label class ="col-sm-2 " > Basic Select </ label >
26
+ < label class ="col-sm-3 " > Basic Select</ label >
27
27
28
- < div class ="col-sm-10 ">
28
+ < div class ="col-sm-9 ">
29
29
< select class ="full-width ">
30
30
< option value ="1 "> First</ option >
31
31
< option value ="2 "> Second</ option >
@@ -36,9 +36,9 @@ <h2 class="bd-title">
36
36
</ div >
37
37
38
38
< div class ="mb-3 row ">
39
- < label class ="col-sm-2 " > Group Select </ label >
39
+ < label class ="col-sm-3 " > Group Select</ label >
40
40
41
- < div class ="col-sm-10 ">
41
+ < div class ="col-sm-9 ">
42
42
< select class ="full-width ">
43
43
< optgroup label ="Group 1 ">
44
44
< option value ="1 "> Option 1</ option >
@@ -58,4 +58,17 @@ <h2 class="bd-title">
58
58
</ select >
59
59
</ div >
60
60
</ div >
61
+
62
+ < div class ="mb-3 row ">
63
+ < label class ="col-sm-3 "> Single Select with Empty Option</ label >
64
+
65
+ < div class ="col-sm-9 ">
66
+ < select class ="multiple-select full-width ">
67
+ < option value =""> </ option >
68
+ < option value ="2 "> Second</ option >
69
+ < option value ="3 "> Third</ option >
70
+ < option value ="4 "> Fourth</ option >
71
+ </ select >
72
+ </ div >
73
+ </ div >
61
74
</ div >
Original file line number Diff line number Diff line change @@ -906,7 +906,7 @@ export class MultipleSelectInstance {
906
906
907
907
const spanElm = this . choiceElm ?. querySelector < HTMLSpanElement > ( 'span' ) ;
908
908
const sl = valueSelects . length ;
909
- let html = '' ;
909
+ let html = null ;
910
910
911
911
const getSelectOptionHtml = ( ) => {
912
912
if ( this . options . useSelectOptionLabel || this . options . useSelectOptionLabelToHtml ) {
@@ -934,7 +934,7 @@ export class MultipleSelectInstance {
934
934
html = getSelectOptionHtml ( ) ;
935
935
}
936
936
937
- if ( html ) {
937
+ if ( html !== null ) {
938
938
spanElm ?. classList . remove ( 'ms-placeholder' ) ;
939
939
if ( this . options . useSelectOptionLabelToHtml ) {
940
940
spanElm . innerHTML = this . options . sanitizer ? this . options . sanitizer ( html ) : html ;
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ $ms-drop-list-item-disabled-filter: Alpha(Opacity = 35) !default;
41
41
$ms-drop-list-item-disabled-opacity : 0.35 !default ;
42
42
$ms-drop-zindex : 1050 !default ;
43
43
$ms-label-margin-bottom : 0 !default ;
44
+ $ms-label-min-height : 1.25rem !default ;
44
45
$ms-label-padding : 0 0 0 1.25rem !default ;
45
46
$ms-ok-button-bg-color : #fff !default ;
46
47
$ms-ok-button-bg-hover-color : #f9f9f9 !default ;
Original file line number Diff line number Diff line change 249
249
position : relative ;
250
250
white-space : nowrap ;
251
251
margin-bottom : var (--ms-label-margin-bottom , $ms-label-margin-bottom );
252
+ min-height : var (--ms-label-min-height , $ms-label-min-height );
252
253
padding : var (--ms-label-padding , $ms-label-padding );
253
254
254
255
& .optgroup {
You can’t perform that action at this time.
0 commit comments