From 53527b18772500c94479b277c89d404516ac6cdf Mon Sep 17 00:00:00 2001 From: Ayush Thakur <100013900+ayusht2810@users.noreply.github.com> Date: Mon, 6 Jan 2025 14:05:04 +0530 Subject: [PATCH] Fix issue of button not disabled while adding todo without title (#249) Co-authored-by: raghavaggarwal2308 --- webapp/src/widget/buttons/button.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webapp/src/widget/buttons/button.tsx b/webapp/src/widget/buttons/button.tsx index 4110615a..bf2ac1a6 100644 --- a/webapp/src/widget/buttons/button.tsx +++ b/webapp/src/widget/buttons/button.tsx @@ -19,6 +19,7 @@ type Props = { danger?: boolean className?: string rightIcon?: boolean + disabled?: boolean } function Button(props: Props): JSX.Element { @@ -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} {props.children}