Closed ellemindwave closed 6 years ago
@katbow E24 have testing this and it still doesn't work
@ellemindwave Do you know which browsers they tested this on so we can isolate the issue? Thanks!
@iteles they tested on Chrome. Thanks
It works fine if there is just one ‘i’ icon on the page that is open. The problem arises when there is more than one ‘i’ icon, and you open one, then move to open another. After opening more than one, you cannot collapse the Information again.
To reproduce, go to https://www.good-thinking.uk/self-assessment and answer as follows (in order to get to a self assessment screen with multiple i buttons):
Current behaviour appears to be:
if the currently displayed self assessment page does not have an information box showing, then clicking any i button will cause the page to re-load and display an information box corresponding to the button pressed.
if there is an information box showing, then:
Seems that if we store the a_info value of the currently displayed information box (probably either as a hidden input (since there are already several of these), or an attribute on the information box HTML element, then we could check that against the a_info value of the i button being pressed and then:
If an information box is being displayed:
If an information box is not being displayed, but one has been hidden on this page then
Icon information doesn’t collapse