Topic: (React 4.1) TextField onFocus is calling the given onBlur method
Hi,
The code of TextField.onFocus looks like this:
onFocus(ev) {
// ignore if event is a window blur
if (document.activeElement===this.inputElRef) {
this.setState({ isTouched:true });
}
// execute callback
letfn=this.props.onBlur;
fn&&fn(ev);
}
At the end it call this.props.onBlur. I would expect it would call this.props.onFocus.
With kind regards,
Arnoud.
Mikołaj Smoleński staff answered 7 years ago
DinovaTech pro commented 7 years ago
This is still happening. Is there an ETA?Mikołaj Smoleński staff commented 7 years ago
I've added this issue to the current list of bugs. We'll try to fix it with the next release (ETA - 2 weeks)FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: No
- Technology: MDB React
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No