(React 4.1) TextField onFocus is calling the given onBlur me


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

awolfard pro asked 7 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 7 years ago

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

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)

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
  • User: Pro
  • Premium support: No
  • Technology: MDB React
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No