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(MultiSelect): fix phantom selection on MenuKeyDownEnter 👻 #9765

Conversation

dakahn
Copy link
Contributor

@dakahn dakahn commented Sep 29, 2021

Closes #9367

Adds a conditional to the switch case on l193 that checks that an item was actually highlighted and selected. Otherwise it just calls break

Testing / Reviewing

In the MultiSelect storybook hi tab to focus the form element. Then hit enter to open the element. Hit enter again and no selection should be made

@dakahn dakahn requested a review from a team as a code owner September 29, 2021 00:15
@netlify
Copy link

netlify bot commented Sep 29, 2021

✔️ Deploy Preview for carbon-react-next ready!

🔨 Explore the source changes: 85674db

🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-react-next/deploys/615d4e043a43d70007832a71

😎 Browse the preview: https://deploy-preview-9765--carbon-react-next.netlify.app

@dakahn dakahn changed the title fix(MultiSelect): fix phantom selection on MenuKeyDownEnter fix(MultiSelect): fix phantom selection on MenuKeyDownEnter 👻 Sep 29, 2021
@netlify
Copy link

netlify bot commented Sep 29, 2021

✔️ Deploy Preview for carbon-elements ready!

🔨 Explore the source changes: a37cd32

🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-elements/deploys/6153b02cd985d900074425ba

😎 Browse the preview: https://deploy-preview-9765--carbon-elements.netlify.app

@netlify
Copy link

netlify bot commented Sep 29, 2021

✔️ Deploy Preview for carbon-components-react ready!

🔨 Explore the source changes: a37cd32

🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-components-react/deploys/6153b02ccba63e0008df2832

😎 Browse the preview: https://deploy-preview-9765--carbon-components-react.netlify.app/

@netlify
Copy link

netlify bot commented Sep 29, 2021

✔️ Deploy Preview for carbon-elements ready!

🔨 Explore the source changes: 85674db

🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-elements/deploys/615d4e04ae94660008882668

😎 Browse the preview: https://deploy-preview-9765--carbon-elements.netlify.app

@netlify
Copy link

netlify bot commented Sep 29, 2021

✔️ Deploy Preview for carbon-components-react ready!
Built without sensitive environment variables

🔨 Explore the source changes: 85674db

🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-components-react/deploys/615d4e046730830007b5c158

😎 Browse the preview: https://deploy-preview-9765--carbon-components-react.netlify.app

@andreancardona
Copy link
Contributor

andreancardona commented Sep 29, 2021

@dakahn looks good to me after testing :)

Just one thing: https://react.carbondesignsystem.com/?path=/story/components-select--default

Is the expectation for default Select to open on enter or just key down?

Also - do we still need this PR? #9522

@dakahn dakahn force-pushed the 9367-MultiSelect-active-descendant-bug branch from ea568a0 to 92308db Compare September 29, 2021 17:17
Copy link
Contributor

@aledavila aledavila left a comment

Choose a reason for hiding this comment

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

lgtm. doesnt close or choose anything on enter

@kodiakhq kodiakhq bot merged commit 6e52398 into carbon-design-system:main Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Undefined selection in MultiSelect
5 participants