naive-ui
naive-ui copied to clipboard
n-tree组件node-props的onClick点击复选框没反应
Describe the bug
2.36.0版本正常,2.38.2版本点击复选框无反应,只有点击node才能激活onClick方法。
const nodeProps = ({ option }: { option: TreeOption }) => { return { onClick(e) { } } } }
Steps to reproduce
1、点击复选框 2、onClick方法无反应
Link to minimal reproduction
无
System Info
2.36.0为可用版本
System:
OS: macOS 13.6.4
CPU: (8) arm64 Apple M1
Memory: 65.67 MB / 8.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 16.20.0 - /usr/local/bin/node
Yarn: 1.22.19 - /opt/homebrew/bin/yarn
npm: 9.8.1 - /usr/local/bin/npm
Browsers:
Chrome: 124.0.6367.80
Safari: 17.3
npmPackages:
naive-ui: 2.36.0 => 2.36.0
vue: ^3.4.5 => 3.4.27
Used Package Manager
npm
Validations
- [X] Read the Contributing Guidelines.
- [X] Read the docs.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A open a GitHub Discussion.
- [X] The provided reproduction is a minimal reproducible example of the bug.