We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
import { useState } from 'react' import ReactDOM from 'react-dom' import { Select } from '@kdcloudjs/kdesign' const options = [ { value: 'gold' }, { value: 'lime' }, { value: 'green' }, { value: 'cyan' } ] function Demo() { const onDeselect = () => { alert('onDeselect') } return ( <div style={{ width: '350px' }}> <Select mode='multiple' options={options } onDeselect={onDeselect} /> </div> ) } ReactDOM.render(<Demo />, mountNode)
将此代码贴到任一组件的演示代码中,点击 Option A, 会触发onDeselect,取消选中Options A, 反而不会触发onDeselect
点击 Option A, 不会触发onDeselect,取消选中Options A, 会触发onDeselect
与上述相反
组件库与浏览器均为最新版本
The text was updated successfully, but these errors were encountered:
fix: [select] 修复onDeselect回调事件触发时机错误问题 fix kingdee#949
a9e808a
26984c0
8fb3049
9ac5d6d
kobehhh
No branches or pull requests
重现链接或代码
重现问题步骤
将此代码贴到任一组件的演示代码中,点击 Option A, 会触发onDeselect,取消选中Options A, 反而不会触发onDeselect
期望的结果是什么
点击 Option A, 不会触发onDeselect,取消选中Options A, 会触发onDeselect
实际的结果是什么
与上述相反
组件库版本号、浏览器信息
组件库与浏览器均为最新版本
The text was updated successfully, but these errors were encountered: