Skip to content

Commit

Permalink
Update CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
NickColley committed Feb 14, 2019
1 parent eee4429 commit 887cb1e
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,29 @@

([PR #1178](https://github.com/alphagov/govuk-frontend/pull/1178))

- Prevent accidental multiple submissions of forms

If a user double clicks a submit button in a form, we debounce this event and ignore the second click.

HTML data attribute:

```html
<button class="govuk-button" data-prevent-double-click="true">
Submit
</button>
```

Nunjucks macro:

```js
{{ govukButton({
text: "Submit",
preventDoubleClick: true
}) }}
```

([PR #1018](https://github.com/alphagov/govuk-frontend/pull/1018))

🔧 Fixes:

- Pull Request Title goes here
Expand Down

0 comments on commit 887cb1e

Please sign in to comment.