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

[EuiComboBox] Fix new input size util not resetting correctly #7240

Merged
merged 2 commits into from
Oct 2, 2023

Conversation

cee-chen
Copy link
Member

@cee-chen cee-chen commented Oct 1, 2023

Summary

😬 I introduced this bug in #7215... but at least I caught it fairly quickly, right?

Repro steps

  • Go to https://eui.elastic.co/v88.5.1/#/forms/combo-box
  • In the first example, type some really long sentence that goes past the width of the input, e.g You must add an accessible label to each instance of EuiComboBox
  • Press enter to add the custom option
  • Delete the custom added option, and notice that the input caret is still incorrectly on the next line when it shouldn't be, and that the input width is still large even though it does not contain content:
before

QA

  • Go to https://eui.elastic.co/pr_7240/#/forms/combo-box
  • In the first example, type some really long sentence that goes past the width of the input, e.g You must add an accessible label to each instance of EuiComboBox
  • Press enter to add the custom option
  • Delete the custom added option, and confirm the input caret is now correctly where it should be, and the input width is 2px:

General checklist

  • Browser QA
    • Checked in Chrome, Safari, Edge, and Firefox
  • Docs site QA - N/A
  • Code quality checklist
  • Release checklist
    • A changelog entry exists and is marked appropriately.
      - [ ] If applicable, added the breaking change issue label (and filled out the breaking change checklist)
  • Designer checklist - N/A

@cee-chen cee-chen marked this pull request as ready for review October 1, 2023 01:39
@cee-chen cee-chen requested a review from a team as a code owner October 1, 2023 01:39
@cee-chen
Copy link
Member Author

cee-chen commented Oct 1, 2023

@elastic/eui-team Would really like to get this in before Monday's release and then update the current open Kibana upgrade PR with this fix before it hits Kibana main 🙏 An early review Monday morning would be super appreciated!

@kibanamachine
Copy link

Preview staging links for this PR:

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

Copy link
Contributor

@1Copenut 1Copenut left a comment

Choose a reason for hiding this comment

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

👍 LGTM!

@cee-chen
Copy link
Member Author

cee-chen commented Oct 2, 2023

Thank you Trevor!

@cee-chen cee-chen merged commit ad2544e into elastic:main Oct 2, 2023
8 checks passed
@cee-chen cee-chen deleted the combobox-input-size branch October 2, 2023 15:37
cee-chen added a commit to elastic/kibana that referenced this pull request Oct 4, 2023
`v88.5.0`⏩`v88.5.4`

This EUI upgrade helps unblock the Shared UX team with some beta
serverless nav updates not listed in the below changelog
(elastic/eui#7228 and
elastic/eui#7248).

---

## [`88.5.4`](https://github.com/elastic/eui/tree/v88.5.4)

- This release contains internal changes to a beta component needed by
Kibana.

## [`88.5.3`](https://github.com/elastic/eui/tree/v88.5.3)

**Bug fixes**

- Fixed `EuiComboBox` search input width not resetting correctly on
selection ([#7240](elastic/eui#7240))

## [`88.5.2`](https://github.com/elastic/eui/tree/v88.5.2)

**Bug fixes**

- Fixed broken `EuiTextTruncate` testenv mocks
([#7234](elastic/eui#7234))

## [`88.5.1`](https://github.com/elastic/eui/tree/v88.5.1)

- Improved the performance of `EuiComboBox` by removing the
`react-autosizer-input` dependency
([#7215](elastic/eui#7215))

**Dependency updates**

- Updated `react-element-to-jsx-string` to v5.0.0
([#7214](elastic/eui#7214))
- Removed unused `@types/vfile-message` dependency
([#7214](elastic/eui#7214))
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.

4 participants