Skip to content

Conversation

rsimon
Copy link
Member

@rsimon rsimon commented Aug 27, 2025

This is a (very) crude prototype for multi-selection, i.e. creating a single annotation from multiple disjoint parts. Works on (desktop) Chrome and Firefox. See issue #206 for more information.

DRAFT!! - just for comparison with the main branch so far


let currentTarget: TextAnnotationTarget | undefined;
let currentTarget: {
previous?: TextAnnotationTarget,
Copy link
Member Author

Choose a reason for hiding this comment

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

Not ideal (and horrible naming). But we need to record the state of the annotation before this segment was added.


const role = useRole(context, { role: 'dialog' });

const { getFloatingProps } = useInteractions([dismiss, role]);
Copy link
Member Author

Choose a reason for hiding this comment

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

@oleksandr-danylchenko I noticed that getFloatingProps isn't actually used. Is this an omission? Or is this no longer needed now we're using the FloatingPortal & FloatingFocusManager?

@rsimon rsimon closed this Oct 21, 2025
@rsimon rsimon deleted the discontinuous-select branch October 21, 2025 13:02
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.

1 participant