From 20d0fc9733d41da17d42deebfd45a5cb0cabc64c Mon Sep 17 00:00:00 2001 From: My-Name-Is-Nabil Date: Tue, 28 Dec 2021 01:37:04 +0200 Subject: [PATCH] compose: Prevent upload files tooltip from hiding behind left sidebar. Resolves the issue by appending tooltip to document body. Fixes: #20639. --- static/js/tippyjs.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/static/js/tippyjs.js b/static/js/tippyjs.js index 284ddde20d..004b2b8512 100644 --- a/static/js/tippyjs.js +++ b/static/js/tippyjs.js @@ -117,6 +117,9 @@ export function initialize() { // so that regular users don't have to see // them unless they want to. delay: [300, 20], + // This ensures that the upload files tooltip + // doesn't hide behind the left sidebar. + appendTo: () => document.body, }); delegate("body", {