Skip to content

Commit 30cebf1

Browse files
committed
Tell parsley to always trigger on change+keyup. fixes #324.
1 parent ba8d4e0 commit 30cebf1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

changes.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22

33
## 1.4.1 - Unreleased
44

5+
- Validate pattern: always validate form elements when they are changed instead
6+
of waiting for a first form submit. This fixes
7+
[ticket 324](https://github.com/Patternslib/Patterns/issues/324).
8+
59
- Update to a new version of [shower](http://shwr.me/) which does not hijack
610
key events when not in presentation mode. This fixes
711
[ticket 315](https://github.com/Patternslib/Patterns/issues/315).
812

9-
1013
- Handle security errors when checking if a browser supports sessions storage.
1114
This fixes [ticket 326](https://github.com/Patternslib/Patterns/issues/326).
1215

src/pat/validate.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ define([
1919
var parsley_form, field, i;
2020

2121
parsley_form=$(this).parsley({
22+
trigger: "change keyup",
2223
successClass: "valid",
2324
errorClass: "warning",
2425
errors: {

0 commit comments

Comments
 (0)