select icon indicating copy to clipboard operation
select copied to clipboard

onBlur, onFocus callback missing event

Open SamKirkland opened this issue 6 years ago • 2 comments

onBlur current has a single argument with the selected value, onBlur is commonly used to handle dirty tracking which requires a event (ex: formik, etc.). onFocus has a similar problem.

TreeSelect's onBlur and onFocus fire a React FocusEvent (React.FocusEventHandler<HTMLInputElement>) which allows you to grab the inputs reference

SamKirkland avatar Aug 22 '19 21:08 SamKirkland

I think this has been fixed in the latest version. The argument for onFocus is an event now, however, there's no documentation about this change in antd's migration guide to v4.

zachguo avatar Feb 20 '20 20:02 zachguo

@zachguo Yes

dongtong avatar Jun 08 '20 05:06 dongtong