Skip to content

Commit

Permalink
feat: searching upstream by users input in creating new routes (#1589)
Browse files Browse the repository at this point in the history
  • Loading branch information
bisakhmondal authored Mar 22, 2021
1 parent 548bbe3 commit 6a29034
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/src/components/Upstream/UpstreamForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,7 @@ const UpstreamForm: React.FC<Props> = forwardRef(
}}
>
<Select
showSearch
data-cy="upstream_selector"
disabled={disabled}
onChange={(upstream_id) => {
Expand All @@ -656,6 +657,9 @@ const UpstreamForm: React.FC<Props> = forwardRef(
form.setFieldsValue(DEFAULT_UPSTREAM);
}
}}
filterOption={(input, item) =>
item?.children.toLowerCase().includes(input.toLowerCase())
}
>
{Boolean(!required) && <Select.Option value={'None'}>None</Select.Option>}
{[
Expand Down

0 comments on commit 6a29034

Please sign in to comment.