Disclosure should unhide before rendering content

(closes #6312)

In case something in the content can't cope with `display: none`
This commit is contained in:
Bryan Housel
2019-05-05 15:56:56 -04:00
parent 66e4564ae7
commit 659240d9fa
+3 -3
View File
@@ -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);
}
};