This commit is contained in:
Mirco Wittrien 2019-10-16 22:07:11 +02:00
parent 3aab08ae53
commit 03e5b93935
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -5745,7 +5745,7 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins ? BDFDB.myPlugins : {}, BDv2Api
if (typeof this.props.type != 'string' || !['BUTTON', 'SWITCH', 'TEXTINPUT'].includes(this.props.type.toUpperCase())) return null;
this.props.type = this.props.type.charAt(0).toUpperCase() + this.props.type.slice(1).toLowerCase();
let childcomponent = LibraryComponents[this.props.type];
if (!childcomponent) return;
if (!childcomponent) return null;
if (this.props.mini && childcomponent.Sizes) this.props.size = childcomponent.Sizes.MINI || childcomponent.Sizes.MIN;
let childprops = Object.assign({}, this.props, {onChange: this.handleChange.bind(this)});
childprops.className = this.props.childClassName;