From 0f4d7b6a85011525e3b7238ff1ca2dd91622736c Mon Sep 17 00:00:00 2001 From: Alexander Guth Date: Wed, 7 Jun 2017 22:36:18 +0200 Subject: [PATCH] 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. --- modules/system/assets/js/framework.extras.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/system/assets/js/framework.extras.js b/modules/system/assets/js/framework.extras.js index 149a963f4..7aa3bd3ed 100644 --- a/modules/system/assets/js/framework.extras.js +++ b/modules/system/assets/js/framework.extras.js @@ -52,7 +52,7 @@ }) if (!!$container.length) { - $container = $('[data-validate-error]') + $container = $('[data-validate-error]', $this) } if (!!$container.length) {