Skip to content

Commit

Permalink
Merge pull request #216 from Recras/contactform-time-step
Browse files Browse the repository at this point in the history
Contact form time field only allowed time in 5-minute intervals
  • Loading branch information
timmipetit authored Jan 30, 2023
2 parents 7d2ac43 + 67b501c commit ba7111e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## Unreleased
* Contact form time field only allowed time in 5-minute intervals, but browser time pickers don't show this in their UI. Removed this limitation.

## 2.0.4 (2022-10-07)
* Contact form/Voucher sales no longer shows error messages inline, but after the form

Expand Down
2 changes: 1 addition & 1 deletion src/contactForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ class RecrasContactForm {
return label + `<input type="number" ${ fixedAttributes } min="1">`;
case 'boeking.starttijd':
placeholder = this.languageHelper.translate('TIME_FORMAT');
return label + `<input type="time" ${ fixedAttributes } placeholder="${ placeholder }" pattern="${ timePattern }" step="300">`;
return label + `<input type="time" ${ fixedAttributes } placeholder="${ placeholder }" pattern="${ timePattern }">`;
case 'boeking.arrangement':
const preFilledPackage = this.options.getPackageId();
if (field.verplicht && this.packages.length === 1) {
Expand Down

0 comments on commit ba7111e

Please sign in to comment.