fixing console error about bad html attribute (#10604)
This commit is contained in:
parent
08211953b2
commit
ed9b6dbf2b
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Reference in New Issue