Skip to content

Commit

Permalink
feat: Made find & replace modal column select dropdown searable (#789)
Browse files Browse the repository at this point in the history
  • Loading branch information
chavda-bhavik authored Sep 10, 2024
2 parents e9d93ea + 7233c24 commit 17546db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export function FindReplaceModal(props: IFindReplaceModalProps) {
control={control}
render={({ field }) => (
<Select
searchable
withinPortal
data={columns}
ref={field.ref}
Expand Down
3 changes: 3 additions & 0 deletions apps/widget/src/design-system/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export interface ISelectProps {
data: string[] | IOption[];
error?: string;
required?: boolean;
searchable?: boolean;
width?: string | number;
value?: string;
defaultValue?: string;
Expand All @@ -29,6 +30,7 @@ export const Select = React.forwardRef<HTMLInputElement, ISelectProps>((props: I
data,
error,
defaultValue,
searchable,
required = true,
width = '100%',
onChange,
Expand All @@ -48,6 +50,7 @@ export const Select = React.forwardRef<HTMLInputElement, ISelectProps>((props: I
style={style}
error={error}
label={title}
searchable={searchable}
defaultValue={defaultValue}
rightSection={<ChevronDown />}
classNames={{
Expand Down

0 comments on commit 17546db

Please sign in to comment.