Skip to content

slider组件的afterChange会触发两次 #7699

@L-ZJoker

Description

@L-ZJoker
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

4.2.3

Environment

官网示例, chrome 126.0.6478.61

Reproduction link

https://next.antdv.com/components/slider-cn#components-slider-demo-event

Steps to reproduce

点击slider,再点击页面任何位置。

What is expected?

改变slider的值,afterChange事件只触发一次。

What is actually happening?

点击slider改变值之后会触发一次afterChange事件,此时在点击页面任何位置会再次触发该事件。控制台会有两次关于afterChange的输出。
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions