bugfix: Hide tooltips when switching a narrow.

Fixes #4639.
This commit is contained in:
Tim Wissel 2019-03-06 17:19:00 +01:00 committed by Tim Abbott
parent 38de5740fa
commit ab6c39c94b
1 changed files with 4 additions and 0 deletions

View File

@ -68,6 +68,10 @@ exports.activate = function (raw_operators, opts) {
// and expect to visit a list of narrows, so let's get these out of the way.
notifications.clear_compose_notifications();
// Open tooltips are only interesting for current narrow,
// so hide them when activating a new one.
$(".tooltip").hide();
if (raw_operators.length === 0) {
return exports.deactivate();
}