diff --git a/modules/overlay/overlay-parent.js b/modules/overlay/overlay-parent.js index eda0463aa3c..e3997899338 100644 --- a/modules/overlay/overlay-parent.js +++ b/modules/overlay/overlay-parent.js @@ -613,7 +613,7 @@ Drupal.overlay.eventhandlerRestrictKeyboardNavigation = function (event) { // move the focus along until it is. var direction = event.shiftKey ? -1 : 1; var current = this.$tabbables.index(event.target); - var $allowedParent = $('#overlay-container, .overlay-displace-top, .overlay-displace-bottom'); + var $allowedParent = '#overlay-container, .overlay-displace-top, .overlay-displace-bottom'; if (current != -1 && this.$tabbables[current + direction] && !this.$tabbables.eq(current + direction).closest($allowedParent).length) { while (this.$tabbables[current + direction] && !this.$tabbables.eq(current + direction).closest($allowedParent).length) { current = current + direction;