Skip to content
New issue

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

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

Already on GitHub? # to your account

fix: allow closing of the Autocomplete results list with the Escape key instead of onBlur #400

Merged
merged 1 commit into from
Jan 17, 2023

Conversation

sri-viswanathan
Copy link
Collaborator

  • As the onBlur on the text input was closing the results list, it was interrupting the click handler for the results list and this was the cause of issue Autocomplete: Selecting a dropdown option with the mouse no longer works #399
  • The onBlur on the text input no longer closes the results list, so clicking outside has no effect anymore. However, we can now press the Escape key to close it. Will need to come up with a different way of closing the results list if clicking outside

Fixes #399

@sri-viswanathan sri-viswanathan added the bug Something isn't working label Jan 17, 2023
@sri-viswanathan sri-viswanathan added this to the 0.6 milestone Jan 17, 2023
@sri-viswanathan sri-viswanathan self-assigned this Jan 17, 2023
@daniele-zurico daniele-zurico self-requested a review January 17, 2023 10:55
@daniele-zurico daniele-zurico merged commit 279d2b5 into release/0.6 Jan 17, 2023
daniele-zurico added a commit that referenced this pull request Jan 18, 2023
* feat: add value to button

* feat:select-containerId (#350)

* fix: On initial render, ensure that the input prompt for Autocomplete is not visible unless focused (#357)

* Feature/upgrade deps (#359)

* feat: upgrade deps

* feat: downgrade microbundle

* Autocomplete: Ensure the value of controlled input is never undefined (#358)

* feat: upgrade microbundle (#360)

* fix: Accessibility improvements (#361)

* Feature/autocomplete (#364)

* feat: add dynamic id to the list

* feat: add dynamic id to the list

* feat: change on the id

* feat: remove jss dependecy (#365)

* Make onChange prop optional for FormGroup component (#368)

* feat: use sass library instead of node-sass

* feat: onChange type now optional

* Separate radio and checkbox groups (#380)

* feat: remove <FormRadio> storybook (#369)

* feat: Deprecate <FormRadio> (#370)

* feat: remove <FormGroup /> and related stories

* Task create form radio (#371)

* feat: Deprecate <FormRadio>

* feat: add <FormRadio /> component

* feat: add <FormRadioCheckboxBase> component

* feat: update dev script

* feat: move <FormGroup /> to <FormRadio />

* feat: rename test FormGroup to RadioGroup

* feat: add storybook documentation

* feat: Rename StyledRadios to Styled

* feat: Fix unstyled stories

* Task create checkbox group (#373)

* feat: create <CheckboxGroup /> component

* feat: update test

* feat: fix test. Was looking for wrong element

* feat: update storybook documentation (#378)

* feat: remove "unstyled" dir from radioGroup story

* feat: update storybook doc for single checkbox (#381)

* Correct single checkbox stories (#382)

* feat: correct <FormCheckbox /> Stories

* feat: correct <FormCheckbox /> Stories

* feat: add class to fix styling (#383)

* fix: add correct components to example src (#385)

* feat: move elements outside of label (#387)

* Conditionally render aria-label (#386)

* feat: conditionally render aria-label

* feat: unit test failed eslint checks

* Feature/upgrade storybook (#392)

* feat: update storybook

* feat: update storybook

* Feature/tab index (#389)

* fix: tabIndex prop for Button CopyToClipboard Details and FormDate

* fix: tabIndex type to string

* fix: tabIndex back to number

* fix: tabIndex and missing tests

* fix: updated liveEdit files

Co-authored-by: Daniele Zurico <daniele.zurico@gmail.com>

* fix: allow closing of the options list with the Escape key instead of onBlur (#400)

* Feat/update readme (#391)

* Update CHANGELOG.md

Co-authored-by: SergioBandera <113599747+SergioBanderaGarcia@users.noreply.github.com>
Co-authored-by: Sri Viswanathan <sri@protodiv.com>
Co-authored-by: cg-julian-taylor <107050226+cg-julian-taylor@users.noreply.github.com>
Co-authored-by: Szilvi Horvath <szilvi.horvath@capgemini.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants