mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-10 19:57:13 +03:00
Merge pull request #961 from youngyou/v4-dev
v4 fix arrivejs '!=' (requires removal of arrow fn until @youngyou arrive.js PR is accepted)
This commit is contained in:
commit
69a37a19d6
6
js/src/bootstrapMaterialDesign.js
vendored
6
js/src/bootstrapMaterialDesign.js
vendored
|
@ -79,7 +79,7 @@ const BootstrapMaterialDesign = (($) => {
|
||||||
},
|
},
|
||||||
text: {
|
text: {
|
||||||
// omit inputs we have specialized components to handle - we need to match text, email, etc. The easiest way to do this appears to be just omit the ones we don't want to match and let the rest fall through to this.
|
// omit inputs we have specialized components to handle - we need to match text, email, etc. The easiest way to do this appears to be just omit the ones we don't want to match and let the rest fall through to this.
|
||||||
selector: [`input[type!='hidden'][type!='checkbox'][type!='radio'][type!='file'][type!='button'][type!='submit'][type!='reset']`]
|
selector: [`input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=button]):not([type=submit]):not([type=reset])`]
|
||||||
},
|
},
|
||||||
textarea: {
|
textarea: {
|
||||||
selector: ['textarea']
|
selector: ['textarea']
|
||||||
|
@ -140,8 +140,8 @@ const BootstrapMaterialDesign = (($) => {
|
||||||
|
|
||||||
// add to arrive if present and enabled
|
// add to arrive if present and enabled
|
||||||
if (document.arrive && this.config.arrive) {
|
if (document.arrive && this.config.arrive) {
|
||||||
$document.arrive(selector, (element) => { // eslint-disable-line no-loop-func
|
$document.arrive(selector, function(){ // eslint-disable-line no-loop-func
|
||||||
$(element)[jqueryFn](componentConfig)
|
$(this)[jqueryFn](componentConfig)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user