alphagov / govuk-browser-extension

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

Prevent event bubbling #188

Closed kashifatcha closed 8 months ago

kashifatcha commented 8 months ago

What

Clicking any of the components on the page whilst using highlight component opens up two tabs: Public layout and whichever highlighted component was selected.

For some reason, when clicking the word Search on the gov.uk homepage, whilst highlight components is on opens up 4 tabs.

Why

So that the correct component guide tab opens when a component is clicked and only once.

https://trello.com/c/7MGCF3gV/2364-highlight-components