mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 21:03:38 +08:00
Merge pull request #2981 from karreiro/share_bug
FIX: Sharing link stood visible after using browser’s back button
This commit is contained in:
commit
a91d5fc726
|
@ -104,6 +104,8 @@ export default Discourse.View.extend({
|
|||
},
|
||||
|
||||
willDestroyElement: function() {
|
||||
this.get('controller').send('close');
|
||||
|
||||
$('html').off('click.discoure-share-link')
|
||||
.off('mousedown.outside-share-link')
|
||||
.off('keydown.share-view');
|
||||
|
|
Loading…
Reference in New Issue
Block a user