Skip to content

Commit

Permalink
Update CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
domoscargin committed Jul 26, 2023
1 parent 4ae0af5 commit ef974c8
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,25 @@ This change was made in [pull request #3819: Add linked image focus style](https

You must make the following changes when you migrate to this release, or your service might break.

#### Update component initialisation

We have removed the `init()` method from all components which include JavaScript. Initialisation now happens when the
component is created.

If you import the JavaScript using `window.GOVUKFrontend.initAll()`, you will not need to make any changes.

If you initialise any component individually, you will need to remove the `.init()`. For example:

```js
new Radios($radio).init()
```

```js
new Radios($radio)
```

This change was introduced in [pull request #4011: Remove component init() methods and initialise in constructor](https://github.com/alphagov/govuk-frontend/pull/4011).

#### Check that details components work as expected

The Details component no longer uses JavaScript, and is no longer polyfilled in older browsers.
Expand Down

0 comments on commit ef974c8

Please sign in to comment.