Skip to content

Commit 2b44ec5

Browse files
authored
Merge pull request microsoft#303937 from microsoft/rebornix/open-marmot
fix mouse click for Element Screenshot
2 parents 47924f8 + 4debf1b commit 2b44ec5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,8 @@ export class ImageAttachmentWidget extends AbstractChatAttachmentWidget {
454454
this.element.ariaLabel = this.appendDeletionHint(ariaLabel);
455455

456456
// Wire up click + keyboard (Enter/Space) open handlers
457-
const canOpenCarousel = attachment.value instanceof Uint8Array && configurationService.getValue<boolean>(ChatConfiguration.ImageCarouselEnabled);
458-
if ((imageData && canOpenCarousel) || resource) {
457+
const canOpenCarousel = !!imageData && configurationService.getValue<boolean>(ChatConfiguration.ImageCarouselEnabled);
458+
if (canOpenCarousel || resource) {
459459
this.element.style.cursor = 'pointer';
460460
this._register(registerOpenEditorListeners(this.element, async () => {
461461
await clickHandler();

0 commit comments

Comments
 (0)