alphagov / govuk-browser-extension

Chrome and Firefox extension for developers working on GOV.UK.
25 stars 5 forks source link

Prevent popup from being re-rendered, since it resets click handlers #52

Closed suzannehamilton closed 7 years ago

suzannehamilton commented 7 years ago

Previously, if there were content links, then the popup would be rendered twice. Most of the click handlers were being set up again, but not the new A/B bucket toggles.

This fix ensures that the popup is only rendered once when it is opened, so the click handlers are never reset.

Trello: https://trello.com/c/jra1OClm/320-make-it-easy-to-test-experiments-in-non-prod-environments