Skip to content

Commit

Permalink
Changes clearable select field logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Civolilah committed Oct 20, 2024
1 parent 961bb88 commit 6a7171f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/forms/SelectField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export function SelectField(props: SelectProps) {
// @ts-ignore
styles={customStyles}
isSearchable
isClearable={dismissable}
isClearable={Boolean(dismissable && selectedEntry?.value)}
data-cy={cypressRef}
/>
)}
Expand Down

0 comments on commit 6a7171f

Please sign in to comment.