mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-18 14:45:12 +02:00
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:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user