fix bug 1011862 - Ensure proper open/close with responsive mode in wiki

https://bugzilla.mozilla.org/show_bug.cgi?id=1011862