Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WEB-2443] fix: issue properties dropdown #5592

Merged
merged 1 commit into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading