From 931f920dd0c2ba38aed51897a76fa914a0ccae88 Mon Sep 17 00:00:00 2001 From: Igor Babko Date: Sat, 20 Jun 2020 15:01:01 +0300 Subject: [PATCH 1/2] Fix typo in README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dc4f589..a8452be 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ From npm: $ npm install vue-clickaway --save ``` -From CDN, chose the one you prefer: +From CDN, choose the one you prefer: ``` html From ce233c3feba9f972b51fca676cc7a1ac4f88c67c Mon Sep 17 00:00:00 2001 From: Igor Babko Date: Sun, 21 Jun 2020 09:13:43 +0300 Subject: [PATCH 2/2] Fix typo in README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a8452be..c7df6a2 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,7 @@ export default { This is no longer the case. If you need to pass arguments, just do `v-on-clickaway="() => away(arg1)"`. 3. There is a common issue with dropdowns (and modals) inside an element with - `v-on-clickaway`. Some UI libraries chose to implement these UI elements + `v-on-clickaway`. Some UI libraries choose to implement these UI elements by attaching the DOM element directly to the body. This makes clicks on a dropped element trigger away handler. To combat that, you have to add an extra check in the handler, for where the event originated from.