1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-10 00:05:24 +02:00

fix(home): disable live connect for async [EE-5000] (#8628)

This commit is contained in:
andres-portainer 2023-03-09 15:50:36 -03:00 committed by GitHub
parent 346fe9e3f1
commit c609f6912f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}