Click here to Skip to main content
15,880,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm new working with AngularJS, I'm trying to fire a blur event when a uibModal lose focus, can you please help?

What I have tried:

i have this code
JavaScript
  let stateCheck = setInterval(() => {
    if (document.readyState === 'complete') {
    document.getElementById("MainModal").onblur = function () {
       alert("blur event");                   
    };
  }
}, 100);

<pre>
Posted
Updated 2-Aug-18 18:20pm

1 solution

i got the answer:

.controller('CamaraCtrl', function ($rootScope, $scope, ...) {
$scope.$on('modal.closing', function(event, reason, closed) {
// Do whatever you want here
});

the answer : Stack Overflow[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900