You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.
Describe the bug
After debugging the MDC code, noticed that textfield.js has some logic into the onBlur which intentionally triggers focus. Why would this be like that? In my case, I have onFocus functionality that I need to execute, and it's causing me problems.
Here's the snippet:
onBlur() {
this._onTouched();
this._foundation.deactivateFocus();
this.blur.emit(this.value);
this._onFocus.emit(false); // <-- this line
}
Expected behavior
Clicking out of input should not trigger on focus. Now, whenever I click out, it's clearing my input. This behaviour i need it to happen only when i intentionally focus in the input by clicking in it, not out.
What Angular MDC version are you using?
"@angular-mdc/web": "^5.1.1",
What OS are you using?:
macOS
What browser(s) is this bug affecting?:
Chrome
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
After debugging the MDC code, noticed that textfield.js has some logic into the onBlur which intentionally triggers focus. Why would this be like that? In my case, I have onFocus functionality that I need to execute, and it's causing me problems.
Here's the snippet:
Here's my piece of code:
Expected behavior
Clicking out of input should not trigger on focus. Now, whenever I click out, it's clearing my input. This behaviour i need it to happen only when i intentionally focus in the input by clicking in it, not out.
What Angular MDC version are you using?
"@angular-mdc/web": "^5.1.1",
What OS are you using?:
macOS
What browser(s) is this bug affecting?:
Chrome
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: