Skip to content

Commit

Permalink
fix: issue properties dropdown (#5592)
Browse files Browse the repository at this point in the history
  • Loading branch information
anmolsinghbhatia authored Sep 12, 2024
1 parent 33dd5fe commit 48e9747
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/core/components/dropdowns/cycle/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export const CycleDropdown: React.FC<Props> = observer((props) => {
buttonContainerClassName
)}
onClick={handleOnClick}
disabled={disabled}
>
{button}
</button>
Expand All @@ -100,6 +101,7 @@ export const CycleDropdown: React.FC<Props> = observer((props) => {
buttonContainerClassName
)}
onClick={handleOnClick}
disabled={disabled}
>
<DropdownButton
className={buttonClassName}
Expand Down
1 change: 1 addition & 0 deletions web/core/components/dropdowns/date-range.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ export const DateRangeDropdown: React.FC<Props> = (props) => {
buttonContainerClassName
)}
onClick={handleOnClick}
disabled={disabled}
>
<DropdownButton
className={buttonClassName}
Expand Down
1 change: 1 addition & 0 deletions web/core/components/dropdowns/date.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ export const DateDropdown: React.FC<Props> = (props) => {
)}
ref={setReferenceElement}
onClick={handleOnClick}
disabled={disabled}
>
<DropdownButton
className={buttonClassName}
Expand Down
2 changes: 2 additions & 0 deletions web/core/components/dropdowns/estimate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ export const EstimateDropdown: React.FC<Props> = observer((props) => {
type="button"
className={cn("clickable block h-full w-full outline-none", buttonContainerClassName)}
onClick={handleOnClick}
disabled={disabled}
>
{button}
</button>
Expand All @@ -170,6 +171,7 @@ export const EstimateDropdown: React.FC<Props> = observer((props) => {
buttonContainerClassName
)}
onClick={handleOnClick}
disabled={disabled}
>
<DropdownButton
className={buttonClassName}
Expand Down
2 changes: 2 additions & 0 deletions web/core/components/dropdowns/member/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export const MemberDropdown: React.FC<Props> = observer((props) => {
type="button"
className={cn("clickable block h-full w-full outline-none", buttonContainerClassName)}
onClick={handleOnClick}
disabled={disabled}
>
{button}
</button>
Expand All @@ -122,6 +123,7 @@ export const MemberDropdown: React.FC<Props> = observer((props) => {
buttonContainerClassName
)}
onClick={handleOnClick}
disabled={disabled}
>
<DropdownButton
className={cn("text-xs", buttonClassName)}
Expand Down
2 changes: 2 additions & 0 deletions web/core/components/dropdowns/module/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ export const ModuleDropdown: React.FC<Props> = observer((props) => {
buttonContainerClassName
)}
onClick={handleOnClick}
disabled={disabled}
>
{button}
</button>
Expand All @@ -250,6 +251,7 @@ export const ModuleDropdown: React.FC<Props> = observer((props) => {
buttonContainerClassName
)}
onClick={handleOnClick}
disabled={disabled}
>
<DropdownButton
className={buttonClassName}
Expand Down
2 changes: 2 additions & 0 deletions web/core/components/dropdowns/priority.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ export const PriorityDropdown: React.FC<Props> = (props) => {
type="button"
className={cn("clickable block h-full w-full outline-none", buttonContainerClassName)}
onClick={handleOnClick}
disabled={disabled}
>
{button}
</button>
Expand All @@ -395,6 +396,7 @@ export const PriorityDropdown: React.FC<Props> = (props) => {
buttonContainerClassName
)}
onClick={handleOnClick}
disabled={disabled}
>
<ButtonToRender
priority={value ?? undefined}
Expand Down
2 changes: 2 additions & 0 deletions web/core/components/dropdowns/project.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ export const ProjectDropdown: React.FC<Props> = observer((props) => {
type="button"
className={cn("clickable block h-full w-full outline-none", buttonContainerClassName)}
onClick={handleOnClick}
disabled={disabled}
>
{button}
</button>
Expand All @@ -140,6 +141,7 @@ export const ProjectDropdown: React.FC<Props> = observer((props) => {
buttonContainerClassName
)}
onClick={handleOnClick}
disabled={disabled}
>
<DropdownButton
className={buttonClassName}
Expand Down
2 changes: 2 additions & 0 deletions web/core/components/dropdowns/state.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ export const StateDropdown: React.FC<Props> = observer((props) => {
type="button"
className={cn("clickable block h-full w-full outline-none", buttonContainerClassName)}
onClick={handleOnClick}
disabled={disabled}
>
{button}
</button>
Expand All @@ -151,6 +152,7 @@ export const StateDropdown: React.FC<Props> = observer((props) => {
buttonContainerClassName
)}
onClick={handleOnClick}
disabled={disabled}
>
<DropdownButton
className={buttonClassName}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ export const IssuePropertyLabels: React.FC<IIssuePropertyLabels> = observer((pro
: "cursor-pointer hover:bg-custom-background-80"
} ${buttonClassName}`}
onClick={handleOnClick}
disabled={disabled}
>
{label}
{!hideDropdownArrow && !disabled && <ChevronDown className="h-3 w-3" aria-hidden="true" />}
Expand Down

0 comments on commit 48e9747

Please sign in to comment.