From 6e869f24b319a9e5fbdb3a090f2742d3ce58a576 Mon Sep 17 00:00:00 2001 From: Kevin Ross Date: Tue, 26 Jan 2016 11:20:03 -0600 Subject: [PATCH] omit more matches for the fall-through text component --- js/src/bootstrapMaterialDesign.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/js/src/bootstrapMaterialDesign.js b/js/src/bootstrapMaterialDesign.js index 4ba10024..c4ed806b 100644 --- a/js/src/bootstrapMaterialDesign.js +++ b/js/src/bootstrapMaterialDesign.js @@ -55,9 +55,6 @@ const BootstrapMaterialDesign = (($) => { file: { selector: 'input[type=file]' }, - //layout: { - // selector: '.mdb-layout-container' - //}, radio: { selector: '.radio > label > input[type=radio]' }, @@ -83,8 +80,8 @@ const BootstrapMaterialDesign = (($) => { selector: '.switch > label > input[type=checkbox]' }, text: { - // omit inputs we have specialized components to handle - selector: [`input[type!='hidden'][type!='checkbox'][type!='radio'][type!='file']`] + // 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']`] }, textarea: { selector: ['textarea'] @@ -96,7 +93,6 @@ const BootstrapMaterialDesign = (($) => { 'checkbox', 'checkboxInline', 'collapseInline', - //'layout', 'drawer', 'file', 'radio',