Skip to content

Commit

Permalink
Add CHANGELOG entry for preventing double initialisation
Browse files Browse the repository at this point in the history
Co-authored-by: seaemsi <50173207+seaemsi@users.noreply.github.com>
  • Loading branch information
romaricpascal and seaemsi committed Sep 26, 2024
1 parent 9e8f241 commit e253dbc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ For advice on how to use these release notes see [our guidance on staying up to

### New features

#### Components can no longer be initialised twice on the same element

GOV.UK Frontend components now throw an error if they've already been initialised on the DOM Element they're receiving for initialisation.
This prevents components from being initialised more than once and therefore not working properly.

We introduced this change in [pull request #5272: Prevent multiple initialisations of a single component instance](https://github.com/alphagov/govuk-frontend/pull/5272)

#### Respond to initialisation errors when using `createAll` and `initAll`

We've added a new `onError` option for `createAll` and `initAll` that lets you respond to initialisation errors.
Expand Down

0 comments on commit e253dbc

Please sign in to comment.