question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

md-input not firing blur event

See original GitHub issue

Note: for support questions, please use one of these channels: https://github.com/angular/material2/blob/master/CONTRIBUTING.md#question. This repository’s issues are reserved for feature requests and bug reports.

  • Do you want to request a feature or report a bug? Bug
  • What is the current behavior? Blur event is not firing on <md-input> elements, even if we provide <md-input (blur)="logBlur()">.
  • If the current behavior is a bug, please provide steps to reproduce and if possible a minimal demo of the problem via https://plnkr.co or similar. Can’t find base plunker for md-input
  • What is the expected behavior? Blur event should fire
  • What is the motivation / use case for changing the behavior?
  • Which version of Angular and Material, and which browser and OS does this issue affect? Did this work in previous versions of Angular / Material? Please also test with the latest stable and snapshot versions. Tested on 2.0.0.alpha-2 in Chrome
  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
ratscrewcommented, May 14, 2016

(input) (focus) … and other events are also not being emitted for md-input, is this by design or will they be added in the future? thanks in advance

ps 👍 for (blur)

0reactions
angular-automatic-lock-bot[bot]commented, Sep 4, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Blur event is not triggering in IE - Angular 2+ - Stack Overflow
The focusout event fires when an element is about to lose focus. ... this event and blur is that focusout bubbles while blur...
Read more >
angular blur event not firing, ng-blur on div,
Blur event is not firing on elements, even if we provide <md-input (blur)="logBlur ()">. ... The blur event fires when an element has...
Read more >
Element: blur event - Web APIs | MDN
The blur event fires when an element has lost focus. The event does not bubble, but the related focusout event that follows does...
Read more >
Focusing: focus/blur - The Modern JavaScript Tutorial
Losing the focus generally means: “the data has been entered”, so we can run the code to check it or even to save...
Read more >
Angular 10 (blur) Event - GeeksforGeeks
ts make a function that triggers on blur event. In app.component.html make an input element and set blur event. Serve the angular app...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found