Clear ZIndex on tooltip element instead of target element (#2650)

pull/2657/head
engelhjs 2022-06-08 14:07:34 +02:00 committed by GitHub
parent 7d386882dc
commit dcd119b67e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -83,9 +83,12 @@ function show(el) {
}
function hide(el) {
const tooltipElement = getTooltipElement(el);
remove(el);
unbindScrollListener(el);
ZIndexUtils.clear(el);
if (tooltipElement) {
ZIndexUtils.clear(tooltipElement);
}
}
function getTooltipElement(el) {