From 659240d9fa9941d8c60ea0715d1a361c6863d28e Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Sun, 5 May 2019 15:56:56 -0400 Subject: [PATCH] Disclosure should unhide before rendering content (closes #6312) In case something in the content can't cope with `display: none` --- modules/ui/disclosure.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/ui/disclosure.js b/modules/ui/disclosure.js index 1c8a6bfa9d..17392d8569 100644 --- a/modules/ui/disclosure.js +++ b/modules/ui/disclosure.js @@ -81,14 +81,14 @@ export function uiDisclosure(context, key, expandedDefault) { : (textDirection === 'rtl') ? '#iD-icon-backward' : '#iD-icon-forward' ); + wrap + .call(uiToggle(_expanded)); + if (_expanded) { wrap .call(_content); } - wrap - .call(uiToggle(_expanded)); - dispatch.call('toggled', this, _expanded); } };