From e6d254749b86bc502bcdeaf3c16893b98677a6ee Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Fri, 28 Sep 2018 18:40:48 +0530 Subject: [PATCH] Outside click directive --- ui/components/Dropdown.vue | 25 +++++++----------------- ui/plugins/frappeVue.js | 2 ++ ui/plugins/outsideClickDirective.js | 30 +++++++++++++++++++++++++++++ 3 files changed, 39 insertions(+), 18 deletions(-) create mode 100644 ui/plugins/outsideClickDirective.js diff --git a/ui/components/Dropdown.vue b/ui/components/Dropdown.vue index f65a5e50..4fffc4a3 100644 --- a/ui/components/Dropdown.vue +++ b/ui/components/Dropdown.vue @@ -1,5 +1,5 @@