mirror of https://github.com/portainer/portainer
fix(home): disable live connect for async [EE-5000] (#8462)
parent
2bfc956f58
commit
0669ad77d3
|
@ -63,7 +63,11 @@ export function Button<TasProps = unknown>({
|
||||||
type={type}
|
type={type}
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
className={clsx(`btn btn-${color}`, sizeClass(size), className)}
|
className={clsx(`btn btn-${color}`, sizeClass(size), className)}
|
||||||
onClick={onClick}
|
onClick={(e) => {
|
||||||
|
if (!disabled) {
|
||||||
|
onClick?.(e);
|
||||||
|
}
|
||||||
|
}}
|
||||||
title={title}
|
title={title}
|
||||||
// eslint-disable-next-line react/jsx-props-no-spreading
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
||||||
{...ariaProps}
|
{...ariaProps}
|
||||||
|
|
Loading…
Reference in New Issue