Skip to content

Commit

Permalink
fix(select): use new property popupMatchSelectWidth instead of dropdo…
Browse files Browse the repository at this point in the history
…wnMatchSelectWidth

Prevent: Warning: [antd: Select] dropdownMatchSelectWidth is deprecated. Please use
popupMatchSelectWidth instead.

BREAKING CHANGE: Require antd >= v5.5.0

fix #55
  • Loading branch information
xrutayisire committed Jun 18, 2023
1 parent a5e6382 commit 9d7102c
Show file tree
Hide file tree
Showing 3 changed files with 420 additions and 217 deletions.
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -63,7 +63,7 @@
"enhanced-resolve": "5.10.0"
},
"peerDependencies": {
"antd": ">=4.23.0",
"antd": ">=5.5.0",
"react": ">=17.0.0",
"react-dom": ">=17.0.0"
},
Expand Down Expand Up @@ -93,7 +93,7 @@
"@types/react-dom": "18.0.9",
"@typescript-eslint/eslint-plugin": "5.44.0",
"@typescript-eslint/parser": "5.44.0",
"antd": "5.0.1",
"antd": "5.6.1",
"babel-loader": "8.3.0",
"cz-conventional-changelog": "3.3.0",
"del-cli": "5.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/components/CustomSelect.tsx
Expand Up @@ -262,7 +262,7 @@ export default function CustomSelect(props: CustomSelectProps) {
showSearch={false}
showArrow={!readOnly}
menuItemSelectedIcon={null}
dropdownMatchSelectWidth={false}
popupMatchSelectWidth={false}
onSelect={onOptionClick}
onDeselect={onOptionClick}
disabled={disabled}
Expand Down

0 comments on commit 9d7102c

Please sign in to comment.