We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f44a6ac commit 989319aCopy full SHA for 989319a
ReCaptchaFrontendUi/view/frontend/web/js/nonInlineReCaptchaRenderer.js
@@ -5,8 +5,9 @@
5
6
/* global grecaptcha */
7
define([
8
- 'jquery'
9
-], function ($) {
+ 'jquery',
+ 'jquery/patches/z-index'
10
+], function ($, zIndex) {
11
'use strict';
12
13
var reCaptchaEntities = [],
@@ -39,7 +40,7 @@ define([
39
40
reCaptchaEntities.some(function (entity) {
41
return entity.is(':visible') &&
42
// 900 is some magic z-index value of modal popups.
- (entity.closest('[data-role=\'modal\']').length === 0 || entity.zIndex() > 900);
43
+ (entity.closest('[data-role=\'modal\']').length === 0 || zIndex.getValue(entity) > 900);
44
}) ? rendererReCaptcha.show() : rendererReCaptcha.hide();
45
},
46
0 commit comments