From c8ce16be509d399c29aee54615282be145f16f78 Mon Sep 17 00:00:00 2001 From: Kevin Ball Date: Thu, 15 Dec 2016 16:08:34 -0800 Subject: [PATCH] Update description of the events fired by dropdown plugin --- js/foundation.dropdown.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/foundation.dropdown.js b/js/foundation.dropdown.js index 7ad123044..c54668d1d 100644 --- a/js/foundation.dropdown.js +++ b/js/foundation.dropdown.js @@ -260,7 +260,7 @@ class Dropdown { open() { // var _this = this; /** - * Fires to close other open dropdowns + * Fires to close other open dropdowns, typically when dropdown is opening * @event Dropdown#closeme */ this.$element.trigger('closeme.zf.dropdown', this.$element.attr('id')); @@ -317,6 +317,10 @@ class Dropdown { this.counter = 4; this.usedPositions.length = 0; } + /** + * Fires once the dropdown is no longer visible. + * @event Dropdown#hide + */ this.$element.trigger('hide.zf.dropdown', [this.$element]); if (this.options.trapFocus) { -- 2.47.2