Pass the current context to the selector

This fixes an issue with more than one form on a single page. The messages will be correctly displayed in the container of their corresponding form.
This commit is contained in:
Alexander Guth 2017-06-07 22:36:18 +02:00 committed by GitHub
parent 4d1bec860d
commit 0f4d7b6a85
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@
})
if (!!$container.length) {
$container = $('[data-validate-error]')
$container = $('[data-validate-error]', $this)
}
if (!!$container.length) {