Skip to content

Commit b6d2a1c

Browse files
liweijie0812tdesign-botuyarn
authored
fix(fake-arrow): fix arrow rotation not working in Safari (#4056)
* fix(menu): fix arrow rotation not working in Safari * chore: update common * chore: stash changelog [ci skip] * chore: stash changelog [ci skip] * chore: resolve conflict * chore: stash changelog [ci skip] --------- Co-authored-by: tdesign-bot <tdesign@tencent.com> Co-authored-by: wū yāng <uyarnchen@gmail.com>
1 parent 494fc3d commit b6d2a1c

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

packages/components/common/FakeArrow.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from 'react';
22
import classNames from 'classnames';
3+
import { isSafari } from '@tdesign/common-js/utils/helper';
34
import { ClassName } from '../common';
45

56
import useConfig from '../hooks/useConfig';
@@ -18,6 +19,7 @@ function FakeArrow(props: {
1819
className={classNames(
1920
`${classPrefix}-fake-arrow`,
2021
{
22+
[`${classPrefix}-fake-arrow--transform`]: isSafari(),
2123
[`${classPrefix}-fake-arrow--active`]: props?.isActive && !props?.disabled,
2224
},
2325
props?.className,
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
pr_number: 4056
3+
contributor: liweijie0812
4+
---
5+
6+
- fix(Menu): 优化 Safari 浏览器中点击展开图标没有变换方向的问题 @liweijie0812 ([#4056](https://github.com/Tencent/tdesign-react/pull/4056))
7+
- fix(Select): 优化 Safari 浏览器中点击展开图标没有变换方向的问题 @liweijie0812 ([#4056](https://github.com/Tencent/tdesign-react/pull/4056))
8+
- fix(TreeSelect): 优化 Safari 浏览器中点击展开图标没有变换方向的问题 @liweijie0812 ([#4056](https://github.com/Tencent/tdesign-react/pull/4056))
9+
- fix(Cascader): 优化 Safari 浏览器中点击展开图标没有变换方向的问题 @liweijie0812 ([#4056](https://github.com/Tencent/tdesign-react/pull/4056))

0 commit comments

Comments
 (0)