mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 15:29:42 +02:00
fix(home): disable live connect for async [EE-5000] (#8462)
This commit is contained in:
parent
2bfc956f58
commit
0669ad77d3
1 changed files with 5 additions and 1 deletions
|
@ -63,7 +63,11 @@ export function Button<TasProps = unknown>({
|
|||
type={type}
|
||||
disabled={disabled}
|
||||
className={clsx(`btn btn-${color}`, sizeClass(size), className)}
|
||||
onClick={onClick}
|
||||
onClick={(e) => {
|
||||
if (!disabled) {
|
||||
onClick?.(e);
|
||||
}
|
||||
}}
|
||||
title={title}
|
||||
// eslint-disable-next-line react/jsx-props-no-spreading
|
||||
{...ariaProps}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue