Skip to content
This repository was archived by the owner on Nov 1, 2020. It is now read-only.

Commit 418ee8e

Browse files
authored
Merge pull request #549 from nextcloud/backport/546/stable15
[stable15] Force close all tooltips when closing sharing menu
2 parents e7850f4 + 7c8c2c2 commit 418ee8e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

js/vendor/nextcloud/share.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,8 @@
495495
.tooltip('hide')
496496
.tooltip({
497497
placement: 'bottom',
498-
trigger: 'manual'
498+
trigger: 'manual',
499+
trackTooltip: true
499500
})
500501
.tooltip('fixTitle')
501502
.tooltip('show');
@@ -805,6 +806,7 @@
805806
*/
806807
hideDropDown: function (callback) {
807808
this.currentShares = null;
809+
$('[data-original-title]').tooltip('hide');
808810
$('#dropdown').slideUp(OC.menuSpeed, function () {
809811
Gallery.Share.droppedDown = false;
810812
$('#dropdown').remove();

0 commit comments

Comments
 (0)