Skip to content

Commit 608e091

Browse files
silverwindclaude
andcommitted
update copy source disabled state after editing comment
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent eddd997 commit 608e091

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

web_src/js/features/repo-issue-edit.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ async function tryOnEditContent(e: Event) {
6161
renderContent = newRenderContent;
6262

6363
rawContent.textContent = comboMarkdownEditor.value();
64+
document.querySelector(`[data-clipboard-target="#${rawContent.id}"]`)?.classList.toggle('disabled', !comboMarkdownEditor.value());
6465

6566
if (!commentContent.querySelector('.dropzone-attachments')) {
6667
if (data.attachments !== '') {

0 commit comments

Comments
 (0)