Skip to content

Commit

Permalink
fix(form): LightFilter default set popupMatchSelectWidth=false
Browse files Browse the repository at this point in the history
close #7123
  • Loading branch information
chenshuai2144 committed Jul 17, 2023
1 parent ed0c88b commit 27667aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/field/src/components/Select/LightSelect/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ const LightSelect: React.ForwardRefRenderFunction<
}}
>
<Select
popupMatchSelectWidth={false}
{...restProps}
allowClear={allowClear}
value={value}
Expand Down
2 changes: 2 additions & 0 deletions tests/form/lightFilter.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1158,6 +1158,7 @@ describe('LightFilter', () => {
label="性别"
showSearch
fieldProps={{
popupMatchSelectWidth: true,
optionFilterProp: 'label',
}}
options={[
Expand Down Expand Up @@ -1204,6 +1205,7 @@ describe('LightFilter', () => {
showSearch
fieldProps={{
optionFilterProp: 'value',
popupMatchSelectWidth: true,
}}
options={[
{ label: '男', value: 'aaa' },
Expand Down

0 comments on commit 27667aa

Please sign in to comment.