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 React from 'react'; import ReactDOM from 'react-dom'; import 'antd/dist/antd.css'; import './index.css'; import { DatePicker } from 'antd'; function onChange(date, dateString) { //console.log(date, dateString); } function onBlur(){ console.log('onBlur') } ReactDOM.render( <div> <DatePicker showTime onBlur={onBlur} onChange={onChange} /> <br /> </div>, document.getElementById('container'), );
期望在点击日期或者时间的时候不要执行onBlur回调
每次点击日期或者时间,或者其他操作都会执行onBlur回调
The text was updated successfully, but these errors were encountered:
similar to #11249
Sorry, something went wrong.
BTW @iwangx, you can save the codesandbox.
@afc163 复制那个代码到codesandbox 里面就可以了,只要是点击具体日期都会出发onBlur的回调,这是个大问题啊,我其实是选了值,但是并没有失去焦点啊?
@afc163 我猜测是这个文本框失焦导致的回调,因为这个也是一个input,并且是获得焦点的
trace #11249
afc163
No branches or pull requests
Reproduction link
Steps to reproduce
把代码复制到重现链接里面看控制台
What is expected?
期望在点击日期或者时间的时候不要执行onBlur回调
What is actually happening?
每次点击日期或者时间,或者其他操作都会执行onBlur回调
The text was updated successfully, but these errors were encountered: