This commit is contained in:
Mirco Wittrien 2019-10-24 15:07:15 +02:00
parent 28d55ff0ba
commit 2f5cefef16
2 changed files with 6 additions and 3 deletions

View File

@ -5415,10 +5415,13 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins || {}, cleanUps: BDFDB && BDFDB
align: this.props.align,
wrap: this.props.wrap,
style: this.props.style,
onClick: e => {
if (typeof this.props.onClick == "function") this.props.onClick(e, this);
},
children: [
!this.noRemove ? BDFDB.ReactUtils.createElement(LibraryComponents.CardRemoveButton, {
!this.props.noRemove ? BDFDB.ReactUtils.createElement(LibraryComponents.CardRemoveButton, {
onClick: e => {
if (typeof this.props.onRemove == "function") this.props.onRemove(e, instance);
if (typeof this.props.onRemove == "function") this.props.onRemove(e, this);
}
}) : null
].concat(this.props.children).filter(n => BDFDB.ReactUtils.isValidElement(n))

File diff suppressed because one or more lines are too long