Skip to content

Commit

Permalink
fix: allow clear in selection fields
Browse files Browse the repository at this point in the history
  • Loading branch information
mguellsegarra committed Sep 25, 2024
1 parent 19263b9 commit 3617265
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widgets/base/Selection.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { Select, theme } from "antd";
import styled from "styled-components";

Expand Down Expand Up @@ -54,6 +53,7 @@ export const SelectionInput = (props: SelectionInputProps) => {
onChange={onChange}
value={value}
optionFilterProp="children"
allowClear
filterOption={(input: string, option: any) =>
option.children.toLowerCase().indexOf(input.toLowerCase()) >= 0
}
Expand Down

0 comments on commit 3617265

Please sign in to comment.