Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(select-rich): block arrow key interaction when singleOption is set #2474

Merged
merged 1 commit into from
Feb 13, 2025

Conversation

gerjanvangeest
Copy link
Member

What I did

Copy link

changeset-bot bot commented Feb 10, 2025

🦋 Changeset detected

Latest commit: 8bd3c4c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@lion/ui Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@gerjanvangeest gerjanvangeest force-pushed the fix/select-rich-singleOption branch from 7bc3f5c to 8bd3c4c Compare February 10, 2025 10:51
elReadOnly.dispatchEvent(new KeyboardEvent('keyup', { key: 'ArrowDown' }));
expect(elReadOnly.opened).to.be.false;

elReadOnly.dispatchEvent(new KeyboardEvent('keyup', { key: 'ArrowUp' }));
expect(elReadOnly.opened).to.be.false;

Copy link
Member

Choose a reason for hiding this comment

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

Should these events be fired from focusable element (invokerNode)?

And should they bubble? (Or wrap them in a mimic method that uses sendKeys?)

Copy link
Member Author

Choose a reason for hiding this comment

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

The function is on the lion-select-rich directly. It already has an todo next to the function to move it to the invoker.
It wouldn't hurt to wrap them in a mimic method. But let's do that in a future task.

@gerjanvangeest gerjanvangeest merged commit d86c1f7 into master Feb 13, 2025
7 checks passed
@gerjanvangeest gerjanvangeest deleted the fix/select-rich-singleOption branch February 13, 2025 13:35
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.

2 participants