I need to be able to force everything on the page to lose focus at a certain point when the user is editing some items.
I found this solution apparently works using jquery - $(':focus').blur()
Is there a way i can do something similar using angular?
Along the lines of
var activeElement = document.activeElement;
if (activeElement) {
activeElement.blur();
}
This is not really angular, it's pure DOM and javascript.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With