mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
ui: fix reaction form (#602)
This commit is contained in:
1 parent
f2990d87a6
commit
449ee8c708
3 files changed
+3
-3
No files matched your search
@@ -68,7 +68,7 @@ const reactionPage = new AutoloadPage('reactionPage', () => {
|
||||
const canUseReaction = $('[data-op="react"]').length > 0;
|
||||
$('[data-op="react"]').each((i, e) => {
|
||||
ReactDOM.createRoot(e).render(
|
||||
<Reaction payload={$(e).data('form')} ele={$(`.reactions[data-${$(e).data('form').type}='${$(e).data('form').id}']`)} />,
|
||||
<Reaction payload={$(e).data('form')} ele={$(`.reactions[data-${$(e).data('form').nodeType}='${$(e).data('form').id}']`)} />,
|
||||
);
|
||||
});
|
||||
$(document).on('click', '.reaction', async (e) => {
|
||||
|
||||
Reference in new issue
Block a user