mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2025-02-02 21:04:13 +03:00
fix the case where selects were covered when using floating labels
This commit is contained in:
parent
d95eed487d
commit
e3e21db4f4
12
js/src/bootstrapMaterialDesign.js
vendored
12
js/src/bootstrapMaterialDesign.js
vendored
|
@ -59,21 +59,21 @@ const BootstrapMaterialDesign = (($) => {
|
|||
checkboxInline: {
|
||||
selector: 'label.checkbox-inline > input[type=checkbox]'
|
||||
},
|
||||
switch: {
|
||||
selector: '.switch > label > input[type=checkbox]'
|
||||
},
|
||||
radio: {
|
||||
selector: '.radio > label > input[type=radio]'
|
||||
},
|
||||
radioInline: {
|
||||
selector: 'label.radio-inline > input[type=radio]'
|
||||
},
|
||||
textarea: {
|
||||
selector: ['textarea']
|
||||
},
|
||||
select: {
|
||||
selector: ['select']
|
||||
},
|
||||
switch: {
|
||||
selector: '.switch > label > input[type=checkbox]'
|
||||
},
|
||||
textarea: {
|
||||
selector: ['textarea']
|
||||
},
|
||||
autofill: {
|
||||
selector: 'body'
|
||||
},
|
||||
|
|
|
@ -31,6 +31,9 @@ const Select = (($) => {
|
|||
|
||||
constructor($element, config) {
|
||||
super($element, $.extend(true, {invalidComponentMatches: [Checkbox, File, Radio, Switch, Text, Textarea]}, Default, config))
|
||||
|
||||
// floating labels will cover the options, so trigger them to be above (if used)
|
||||
this.addIsFilled()
|
||||
}
|
||||
|
||||
dispose() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user