fixing console error about bad html attribute (#10604)

This commit is contained in:
Evan Rusackas 2020-08-16 20:21:21 -07:00 committed by GitHub
parent 08211953b2
commit ed9b6dbf2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,10 +104,13 @@ export default function Button(props: ButtonProps) {
<SupersetButton {...buttonProps}>{props.children}</SupersetButton>
);
const whittledProps = { ...buttonProps };
delete whittledProps.dropdownItems;
if (dropdownItems) {
button = (
<div style={BUTTON_WRAPPER_STYLE}>
<SupersetButton {...buttonProps} data-toggle="dropdown">
<SupersetButton {...whittledProps} data-toggle="dropdown">
{props.children}
</SupersetButton>
<ul className="dropdown-menu">