Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw errors during Exit This Page initialisation if key HTML elements are missing #4129

Closed
1 task done
Tracked by #3478
domoscargin opened this issue Aug 24, 2023 · 0 comments · Fixed by #4199
Closed
1 task done
Tracked by #3478
Assignees
Milestone

Comments

@domoscargin
Copy link
Contributor

domoscargin commented Aug 24, 2023

What

Update our JavaScript components requiring specific HTML elements to be present so they throw a MissingElementError (extending GOVUKFrontendError) rather than silently fail:

  • The button

Why

This is part of our work to have our components throw rather than silently return during initialisation.

Who needs to work on this

Developers

Who needs to review this

Developers

Done when

  • Component has been updated to throw errors
@domoscargin domoscargin added this to the v5.0 milestone Aug 24, 2023
@romaricpascal romaricpascal self-assigned this Sep 11, 2023
romaricpascal added a commit that referenced this issue Sep 11, 2023
Wording to match that of the Skip link component, but to be reviewed in [#4072](#4072).
Closes #4129
romaricpascal added a commit that referenced this issue Sep 11, 2023
Wording to match that of the Skip link component, but to be reviewed in #4072.

Closes #4129
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging a pull request may close this issue.

2 participants