mirror of
https://github.com/apache/superset.git
synced 2024-09-06 13:57:40 -04:00
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
Block a user