Browse Source

fix: Select scrollbar rtl direction position (#42508)

Co-authored-by: 洋 <hetongyang@bytedance.com>
pull/42509/head
2 years ago
committed by GitHub
parent
commit
e4f84e0e96
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      components/select/index.tsx
  2. 6
      package.json

5
components/select/index.tsx

@ -88,6 +88,7 @@ const InternalSelect = <OptionType extends BaseOptionType | DefaultOptionType =
builtinPlacements,
dropdownMatchSelectWidth,
popupMatchSelectWidth,
direction: propDirection,
...props
}: SelectProps<OptionType>,
ref: React.Ref<BaseSelectRef>,
@ -96,7 +97,7 @@ const InternalSelect = <OptionType extends BaseOptionType | DefaultOptionType =
getPopupContainer: getContextPopupContainer,
getPrefixCls,
renderEmpty,
direction,
direction: contextDirection,
virtual,
popupMatchSelectWidth: contextPopupMatchSelectWidth,
popupOverflow,
@ -105,6 +106,8 @@ const InternalSelect = <OptionType extends BaseOptionType | DefaultOptionType =
const prefixCls = getPrefixCls('select', customizePrefixCls);
const rootPrefixCls = getPrefixCls();
const direction = propDirection ?? contextDirection;
const { compactSize, compactItemClassnames } = useCompactItemContext(prefixCls, direction);
const [wrapSSR, hashId] = useStyle(prefixCls);

6
package.json

@ -121,7 +121,7 @@
"copy-to-clipboard": "^3.2.0",
"dayjs": "^1.11.1",
"qrcode.react": "^3.1.0",
"rc-cascader": "~3.11.2",
"rc-cascader": "~3.12.0",
"rc-checkbox": "~3.0.0",
"rc-collapse": "~3.5.2",
"rc-dialog": "~9.1.0",
@ -141,7 +141,7 @@
"rc-rate": "~2.10.0",
"rc-resize-observer": "^1.2.0",
"rc-segmented": "~2.2.0",
"rc-select": "~14.4.3",
"rc-select": "~14.5.0",
"rc-slider": "~10.1.0",
"rc-steps": "~6.0.0",
"rc-switch": "~4.1.0",
@ -150,7 +150,7 @@
"rc-textarea": "~1.2.2",
"rc-tooltip": "~6.0.0",
"rc-tree": "~5.7.0",
"rc-tree-select": "~5.8.0",
"rc-tree-select": "~5.9.0",
"rc-upload": "~4.3.0",
"rc-util": "^5.27.0",
"scroll-into-view-if-needed": "^3.0.3",

Loading…
Cancel
Save