Skip to content

Commit 989319a

Browse files
AC-1445: Unable to click Underline in TinyMCE on PageBuilder
1 parent f44a6ac commit 989319a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ReCaptchaFrontendUi/view/frontend/web/js/nonInlineReCaptchaRenderer.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55

66
/* global grecaptcha */
77
define([
8-
'jquery'
9-
], function ($) {
8+
'jquery',
9+
'jquery/patches/z-index'
10+
], function ($, zIndex) {
1011
'use strict';
1112

1213
var reCaptchaEntities = [],
@@ -39,7 +40,7 @@ define([
3940
reCaptchaEntities.some(function (entity) {
4041
return entity.is(':visible') &&
4142
// 900 is some magic z-index value of modal popups.
42-
(entity.closest('[data-role=\'modal\']').length === 0 || entity.zIndex() > 900);
43+
(entity.closest('[data-role=\'modal\']').length === 0 || zIndex.getValue(entity) > 900);
4344
}) ? rendererReCaptcha.show() : rendererReCaptcha.hide();
4445
},
4546

0 commit comments

Comments
 (0)