Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Saving the content of the edit dialog when the backdrop is clicked on #416

Closed
dahamstor opened this issue Jun 2, 2016 · 1 comment · May be fixed by #473
Closed

Saving the content of the edit dialog when the backdrop is clicked on #416

dahamstor opened this issue Jun 2, 2016 · 1 comment · May be fixed by #473

Comments

@dahamstor
Copy link

Currently there is an option for closing the Edit dialog if the background is clicked on (the clickOutsideToClose option), but the data is not saved, however I need to create a behavior, where the same event happens, but the input data is actually submitted. Since the actual submission logic is inside the controllers preset function, I would like to know if there is any way to call it in the clickOutsideToClose if block. I am not exactly experienced with Angular just yet.

@dahamstor
Copy link
Author

Ended up fixing this by adding ng-blur to the input field in the preset template. Seems to work for any kind of lost focus.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant