Skip to content

Conversation

RoyEJohnson
Copy link
Contributor

@RoyEJohnson RoyEJohnson commented Oct 16, 2025

@RoyEJohnson RoyEJohnson requested a review from a team as a code owner October 16, 2025 17:57
@RoyEJohnson RoyEJohnson requested a review from Dantemss October 16, 2025 17:57
@TomWoodward TomWoodward temporarily deployed to rex-web-core-20-fix-cle-exx3r0 October 16, 2025 17:57 Inactive
@RoyEJohnson RoyEJohnson force-pushed the core-20-fix-clear-highlight-when-user-moves-focus branch from c960db6 to eb2267e Compare October 16, 2025 18:06
@TomWoodward TomWoodward temporarily deployed to rex-web-core-20-fix-cle-vlin1j October 16, 2025 18:06 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-core-20-fix-cle-vlin1j October 16, 2025 18:57 Inactive
Copy link
Member

@Dantemss Dantemss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this really what is needed to implement what is in the card? The card is just confusing to me and talks about a bunch of different things.

if (!selection?.rangeCount) {
return;
}
const userRange = selection?.getRangeAt(0);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

selection should always be defined by this point (after the early return check). Is TS complaining?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it's TS complaining. I'm sorry, this shouldn't be up for review yet. I was just trying to get a deployment.

}

document.addEventListener('focusin', handleFocusChange);
document.addEventListener('focusout', handleFocusChange);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So any focus change at all clears the selected text?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah. That's the issue as I understand it: Otto would select some text, and then tab elsewhere and it would still be ready to create the highlight.

@RoyEJohnson RoyEJohnson marked this pull request as draft October 16, 2025 20:54
@TomWoodward TomWoodward temporarily deployed to rex-web-core-20-fix-cle-vlin1j October 16, 2025 21:19 Inactive
@RoyEJohnson RoyEJohnson force-pushed the core-20-fix-clear-highlight-when-user-moves-focus branch from 7c665b9 to 95a8381 Compare October 16, 2025 21:34
@TomWoodward TomWoodward temporarily deployed to rex-web-core-20-fix-cle-vlin1j October 16, 2025 21:34 Inactive
Update EditCard.spec.tsx.snap
@RoyEJohnson RoyEJohnson force-pushed the core-20-fix-clear-highlight-when-user-moves-focus branch from 95a8381 to 9ec69a8 Compare October 20, 2025 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants