Skip to content

Commit

Permalink
Disclosure should unhide before rendering content
Browse files Browse the repository at this point in the history
(closes #6312)

In case something in the content can't cope with `display: none`
  • Loading branch information
bhousel committed May 5, 2019
1 parent 66e4564 commit 659240d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/ui/disclosure.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
};
Expand Down

0 comments on commit 659240d

Please sign in to comment.