fix onclick handler when closing/reopening notes with comment (#10205)

This commit is contained in:
laigyu
2024-04-24 19:49:25 +08:00
committed by GitHub
parent db00d473c6
commit 42691dec9d

View File

@@ -370,7 +370,8 @@ export function uiNoteEditor(context) {
var action = (d.status === 'open' ? 'close' : 'open');
var andComment = (d.newComment ? '_comment' : '');
return t.html('note.' + action + andComment);
})
});
buttonSection.select('.status-button')
.on('click.status', clickStatus);
buttonSection.select('.comment-button') // select and propagate data