Use click not onclick
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
14f547f0eb
commit
aee27836d6
1 changed files with 8 additions and 4 deletions
|
@ -211,7 +211,8 @@ matrixLinkify.options = {
|
||||||
const permalink = parsePermalink(href);
|
const permalink = parsePermalink(href);
|
||||||
if (permalink && permalink.userId) {
|
if (permalink && permalink.userId) {
|
||||||
return {
|
return {
|
||||||
onclick: function(e) {
|
// @ts-ignore see https://linkify.js.org/docs/options.html
|
||||||
|
click: function(e) {
|
||||||
matrixLinkify.onUserClick(e, permalink.userId);
|
matrixLinkify.onUserClick(e, permalink.userId);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -223,19 +224,22 @@ matrixLinkify.options = {
|
||||||
}
|
}
|
||||||
case Type.UserId:
|
case Type.UserId:
|
||||||
return {
|
return {
|
||||||
onclick: function(e) {
|
// @ts-ignore see https://linkify.js.org/docs/options.html
|
||||||
|
click: function(e) {
|
||||||
matrixLinkify.onUserClick(e, href);
|
matrixLinkify.onUserClick(e, href);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
case Type.RoomAlias:
|
case Type.RoomAlias:
|
||||||
return {
|
return {
|
||||||
onclick: function(e) {
|
// @ts-ignore see https://linkify.js.org/docs/options.html
|
||||||
|
click: function(e) {
|
||||||
matrixLinkify.onAliasClick(e, href);
|
matrixLinkify.onAliasClick(e, href);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
case Type.GroupId:
|
case Type.GroupId:
|
||||||
return {
|
return {
|
||||||
onclick: function(e) {
|
// @ts-ignore see https://linkify.js.org/docs/options.html
|
||||||
|
click: function(e) {
|
||||||
matrixLinkify.onGroupClick(e, href);
|
matrixLinkify.onGroupClick(e, href);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue