Skip to content

Commit

Permalink
Merge pull request #123 from vikashkumar-19/action-button-loading-pro…
Browse files Browse the repository at this point in the history
…p-fix
  • Loading branch information
hunghg255 authored Dec 18, 2024
2 parents beee542 + 268cc38 commit 510fe83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ActionButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const ActionButton = React.forwardRef<HTMLButtonElement, Partial<ActionButtonPro
disabled = false,
customClass = '',
// color = undefined,
// loading = false,
loading = undefined,
shortcutKeys = undefined,
tooltipOptions = {},
action = undefined,
Expand All @@ -75,7 +75,7 @@ const ActionButton = React.forwardRef<HTMLButtonElement, Partial<ActionButtonPro
disabled={disabled}
onClick={action}
data-state={isActive?.() ? 'on' : 'off'}
{...rest}
{...(rest as Omit<typeof rest, 'loading'>)}
>
{Icon && <Icon className="richtext-w-4 richtext-h-4" />}
{children}
Expand Down

0 comments on commit 510fe83

Please sign in to comment.