Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tabs 选项卡] onChange 方法在激活的选项卡没有发生变化时也会触发 #2586

Closed
evanqhu opened this issue Nov 3, 2023 · 2 comments
Labels
improvement to be published fixed, not be published

Comments

@evanqhu
Copy link

evanqhu commented Nov 3, 2023

tdesign-react 版本

1.3

重现链接

https://codesandbox.io/s/tdesign-react-demo-forked-29hd4z?file=/src/demo.jsx

重现步骤

重复点击激活的选项卡,也会触发 onChange 事件

期望结果

只有当激活的选项卡发生变化时才会触发 onChange 事件,重复点击激活的选项卡时不应该触发该事件

实际结果

重复点击激活的选项卡,也会触发 onChange 事件

框架版本

React 18

浏览器版本

Chrome 120.0.6090.0(正式版本)dev (arm64)

系统版本

MacOS(14.0)

Node版本

Node 18

补充说明

No response

Copy link
Contributor

github-actions bot commented Nov 3, 2023

👋 @danchaofan98,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@uyarn
Copy link
Collaborator

uyarn commented Nov 15, 2023

fixed in 1.3.1

@uyarn uyarn closed this as completed Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement to be published fixed, not be published
Projects
None yet
Development

No branches or pull requests

3 participants