Skip to content

Commit

Permalink
refactor: warning for deprecated dropdownMatchSelectWidth (ant-desi…
Browse files Browse the repository at this point in the history
…gn#41627)

* chore: warning for dropdownMatchSelectWidth

* test: update snapshot

* test: update test case

* fix: align context

* chore: warning deprecated

* chore: fix lint
  • Loading branch information
zombieJ authored and RedJue committed Apr 25, 2023
1 parent b9ef74e commit 75d713c
Show file tree
Hide file tree
Showing 17 changed files with 6,555 additions and 8,681 deletions.
11 changes: 7 additions & 4 deletions components/auto-complete/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ import type { BaseSelectRef } from 'rc-select';
import toArray from 'rc-util/lib/Children/toArray';
import omit from 'rc-util/lib/omit';
import * as React from 'react';
import genPurePanel from '../_util/PurePanel';
import { isValidElement } from '../_util/reactNode';
import type { InputStatus } from '../_util/statusUtils';
import warning from '../_util/warning';
import type { ConfigConsumerProps } from '../config-provider';
import { ConfigContext } from '../config-provider';
import type {
Expand All @@ -20,10 +24,6 @@ import type {
RefSelectProps,
} from '../select';
import Select from '../select';
import genPurePanel from '../_util/PurePanel';
import { isValidElement } from '../_util/reactNode';
import type { InputStatus } from '../_util/statusUtils';
import warning from '../_util/warning';

const { Option } = Select;

Expand All @@ -45,6 +45,9 @@ export interface AutoCompleteProps<
popupClassName?: string;
/** @deprecated Please use `popupClassName` instead */
dropdownClassName?: string;
/** @deprecated Please use `popupMatchSelectWidth` instead */
dropdownMatchSelectWidth?: boolean | number;
popupMatchSelectWidth?: boolean | number;
}

function isSelectOptionOrSelectOptGroup(child: any): Boolean {
Expand Down
Loading

0 comments on commit 75d713c

Please sign in to comment.