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(combobox): fix issue causing value to be cleared when selecting an item (Windows + trackpad) #7954

Merged

Conversation

jcfranco
Copy link
Member

@jcfranco jcfranco commented Oct 5, 2023

Related Issue: #7934

Summary

Updates the component to consistently bail on blur handling logic if the input is blurred, but focus is still within the component.

Notes

@github-actions github-actions bot added the bug Bug reports for broken functionality. Issues should include a reproduction of the bug. label Oct 5, 2023
@jcfranco jcfranco requested a review from anveshmekala October 5, 2023 22:56
@jcfranco jcfranco marked this pull request as ready for review October 5, 2023 22:56
@jcfranco jcfranco requested a review from a team as a code owner October 5, 2023 22:56
@jcfranco jcfranco added p - critical Issue preventing EVERYONE from using a component or core functionality pr ready for visual snapshots Adding this label will run visual snapshot testing. labels Oct 5, 2023
Copy link
Member

@driskull driskull left a comment

Choose a reason for hiding this comment

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

Awesome! 🌈 ☁️ 🦄

@jcfranco jcfranco merged commit 557d658 into main Oct 5, 2023
16 of 17 checks passed
@jcfranco jcfranco deleted the jcfranco/7934-fix-deselecting-of-value-when-selecting-item branch October 5, 2023 23:10
@github-actions github-actions bot added this to the 1.9.1 Maintenance Release milestone Oct 5, 2023
@jcfranco
Copy link
Member Author

jcfranco commented Oct 5, 2023

@anveshmekala Could you give this a look and comment if you notice anything I may have missed?

@anveshmekala
Copy link
Contributor

@anveshmekala Could you give this a look and comment if you notice anything I may have missed?

This will break the issue #2162 when the user chooses to enter some custom value and tab out of the component. The tests should have cover this scenario but they are validating against the value property which will be empty since there are no selectedItems.

geospatialem pushed a commit that referenced this pull request Oct 6, 2023
🤖 I have created a release *beep* *boop*
---


<details><summary>@esri/calcite-components: 1.9.1</summary>

##
[1.9.1](https://github.com/Esri/calcite-design-system/compare/@esri/[email protected]...@esri/[email protected])
(2023-10-05)


### Bug Fixes

* **combobox:** Fix issue causing value to be cleared when selecting an
item (Windows + trackpad)
([#7954](#7954))
([557d658](557d658))
* **input-time-zone:** Fix handling of unknown and cityless time zones
from offset display mode
([#7947](#7947))
([75e0302](75e0302))
* **panel:** Fix collapse action title and reverse icon direction
([#7927](#7927))
([5f620f8](5f620f8))
</details>

<details><summary>@esri/calcite-components-react: 1.9.1</summary>

##
[1.9.1](https://github.com/Esri/calcite-design-system/compare/@esri/[email protected]...@esri/[email protected])
(2023-10-05)


### Miscellaneous Chores

* **@esri/calcite-components-react:** Synchronize undefined versions


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @esri/calcite-components bumped from ^1.9.1-next.1 to ^1.9.1
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@jcfranco
Copy link
Member Author

jcfranco commented Oct 6, 2023

Yikes, thanks for catching that! I knew this fix felt too easy. 😂

@jcfranco jcfranco added regression Issues that are caused by changes in a release, but were working before that. and removed p - critical Issue preventing EVERYONE from using a component or core functionality labels Oct 7, 2023
benelan added a commit that referenced this pull request Oct 11, 2023
* origin/main: (83 commits)
  chore: add design tokens to monorepo (#7948)
  test(input-time-zone): restore common tests (#7963)
  chore: release next
  fix(input-time-zone): fix error caused by time zone group filtering (#7971)
  chore: release next
  fix(table): Improve scrollbar display (#7967)
  build: bump timezone-groups (#7962)
  chore: release next
  fix(flow-item): update collapsed property when collapse button is clicked (#7960)
  chore: release main (#7945)
  chore: release next
  fix(input-time-zone): fix handling of unknown and cityless time zones from offset display mode (#7947)
  fix(combobox): fix issue causing value to be cleared when selecting an item (Windows + trackpad) (#7954)
  chore(deps): update calcite-ui-icons to 3.24.7 (#7949)
  test(flow-item, panel): add tests for internal property. (#7931)
  chore: release next
  fix(panel): fix collapse action title and reverse icon direction (#7927)
  chore: update issue template labels to support workflows (#7938)
  build(deps): bump timezone-groups (#7933)
  build(deps): update dependency @esri/calcite-ui-icons to v3.24.6 (#7925)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug reports for broken functionality. Issues should include a reproduction of the bug. pr ready for visual snapshots Adding this label will run visual snapshot testing. regression Issues that are caused by changes in a release, but were working before that.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants