Skip to content

Commit

Permalink
Fix issue of button not disabled while adding todo without title (#249)
Browse files Browse the repository at this point in the history
Co-authored-by: raghavaggarwal2308 <[email protected]>
  • Loading branch information
ayusht2810 and raghavaggarwal2308 authored Jan 6, 2025
1 parent 7c644b3 commit 53527b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webapp/src/widget/buttons/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ type Props = {
danger?: boolean
className?: string
rightIcon?: boolean
disabled?: boolean
}

function Button(props: Props): JSX.Element {
Expand All @@ -40,6 +41,7 @@ function Button(props: Props): JSX.Element {
className={generateClassName(classNames)}
title={props.title}
onBlur={props.onBlur}
disabled={props.disabled}
>
{!props.rightIcon && props.icon}
<span>{props.children}</span>
Expand Down

0 comments on commit 53527b1

Please sign in to comment.