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:
parent
4d1bec860d
commit
0f4d7b6a85
|
|
@ -52,7 +52,7 @@
|
|||
})
|
||||
|
||||
if (!!$container.length) {
|
||||
$container = $('[data-validate-error]')
|
||||
$container = $('[data-validate-error]', $this)
|
||||
}
|
||||
|
||||
if (!!$container.length) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue