We've found that the undocumented parameter section heading has different behaviors depending on what's focused at the moment before clicking. This is a bad sign, that we probably have two or more event handlers battling one another.
Scenario: a multiple-template transclusion dialog is open, and the "Add undocumented parameter" heading is visible,
- Given that the content pane heading is collapsed and the heading is at the bottom of the screen and it is focused, when I click on the heading, then it expands and scrolls so the input is visible.
- Given that the content pane heading is collapsed and the heading is at the bottom of the screen and it not focused, when I click on the heading, then it expands but doesn't scroll.
- The view should scroll as in (1).
- Given that the content pane heading is expanded and focus is on the heading or the input is visible on-screen, when I click on the heading then it collapses.
- Given that the content pane heading is expanded but the template name input is off-screen and not focused, when I click on the heading then the input scrolls onto the screen but does not collapse.
- The section should collapse as in (3).