Skip to content

Commit

Permalink
fix(textAngular): Add stop of update selected styles on blur.
Browse files Browse the repository at this point in the history
Fixes #443
  • Loading branch information
SimeonC authored and SimeonC committed Dec 17, 2014
1 parent 1ad4c21 commit c877991
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/main.js
Expand Up @@ -386,7 +386,10 @@ textAngular.directive("textAngular", [
element.removeClass(scope.classes.focussed);
_toolbars.unfocus();
// to prevent multiple apply error defer to next seems to work.
$timeout(function(){ element.triggerHandler('blur'); }, 0);
$timeout(function(){
scope._bUpdateSelectedStyles = false;
element.triggerHandler('blur');
}, 0);
}
e.preventDefault();
return false;
Expand Down

0 comments on commit c877991

Please sign in to comment.