FIX: allows right-click on post-date sharing link (#7054)

This commit is contained in:
Joffrey JAFFEUX 2019-02-22 15:18:05 +01:00 committed by GitHub
parent d1bad881ea
commit 8aca26cce3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -243,6 +243,7 @@ createWidget("post-date", {
{
attributes: {
class: "post-date",
href: attrs.shareUrl,
"data-share-url": attrs.shareUrl,
"data-post-number": attrs.post_number
}
@ -258,7 +259,9 @@ createWidget("post-date", {
return lastWikiEdit ? lastWikiEdit : createdAt;
},
click() {
click(event) {
event.preventDefault();
const post = this.findAncestorModel();
const modalFallback = () => {