Topic: (React 4.1) TextField onFocus is calling the given onBlur method

awolfard pro asked 6 years ago


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 6 years ago


Thanks for advice. We'll check it out. Regards

DinovaTech pro commented 6 years ago

This is still happening. Is there an ETA?

Mikołaj Smoleński staff commented 6 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)


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB React
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags