From b6f4d60a91d3c3bb79895a9ba4896f5bfd454ed8 Mon Sep 17 00:00:00 2001 From: Troy Morehouse Date: Thu, 14 Dec 2017 10:42:37 -0400 Subject: [PATCH] fix(tooltip+popover): append to `.modal-content` instead of `.modal` Ensures that interactive popovers (i.e. with input(s)) are inside the enforce focus tab ring cycle Fixes #1464 --- src/utils/tooltip.class.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/utils/tooltip.class.js b/src/utils/tooltip.class.js index 6f14bbeafb7..1bb862b2ffd 100644 --- a/src/utils/tooltip.class.js +++ b/src/utils/tooltip.class.js @@ -10,9 +10,10 @@ const BSCLS_PREFIX_REGEX = new RegExp(`\\b${CLASS_PREFIX}\\S+`, 'g') const TRANSITION_DURATION = 150 -// Modal $root event (prepare for future evnt name change) +// Modal $root hidden event const MODAL_CLOSE_EVENT = 'bv::modal::hidden' -const MODAL_CLASS = '.modal' +// Modal container for appending tip/popover +const MODAL_CLASS = '.modal-content' const AttachmentMap = { AUTO: 'auto',