mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-28 14:23:08 +02:00
Fix: Mk:C:mfm
のonClickEv
が正常に呼び出されない問題を修正 (#12831)
* fix clickable api * Update CHANGELOG.md * revert CHANGELOG.md * Update CHANGELOG.md
This commit is contained in:
parent
00e195f50b
commit
622a09f8ed
1 changed files with 2 additions and 2 deletions
|
@ -218,7 +218,7 @@ function getTextOptions(def: values.Value | undefined): Omit<AsUiText, 'id' | 't
|
|||
};
|
||||
}
|
||||
|
||||
function getMfmOptions(def: values.Value | undefined): Omit<AsUiMfm, 'id' | 'type'> {
|
||||
function getMfmOptions(def: values.Value | undefined, call: (fn: values.VFn, args: values.Value[]) => Promise<values.Value>): Omit<AsUiMfm, 'id' | 'type'> {
|
||||
utils.assertObject(def);
|
||||
|
||||
const text = def.value.get('text');
|
||||
|
@ -241,7 +241,7 @@ function getMfmOptions(def: values.Value | undefined): Omit<AsUiMfm, 'id' | 'typ
|
|||
color: color?.value,
|
||||
font: font?.value,
|
||||
onClickEv: (evId: string) => {
|
||||
if (onClickEv) call(onClickEv, values.STR(evId));
|
||||
if (onClickEv) call(onClickEv, [values.STR(evId)]);
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue