How can I force ng-click to take precedence over an ng-blur event?

后端 未结 3 1602
暗喜
暗喜 2020-12-30 19:16

When I click the save button it triggers an ng-blur event, how can I make the buttons ng-click event to trigger instead? I still want the ng-blur event to trigger if I click

3条回答
  •  旧时难觅i
    2020-12-30 20:05

    Don't use ng-blur then, bind the $document with click event to stop edit mode. And remember to unbind the event when the scope is destroyed.

提交回复
热议问题