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(TypeaheadSelect): Add callback on clear selection #10719

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

jeff-phillips-18
Copy link
Member

What
Closes #10710

Description
Adds a callback for when the current selection is cleared.
Handles updates to the initialOptions and updates the component state when they change.
Do not clear selection when the user types in the input only if a choice is selected.

@jenny-s51 jenny-s51 self-requested a review July 9, 2024 19:20
@patternfly-build
Copy link
Contributor

patternfly-build commented Jul 9, 2024

@tlabaj tlabaj merged commit 7e51bfb into patternfly:main Jul 10, 2024
13 checks passed
tlabaj pushed a commit to tlabaj/patternfly-react that referenced this pull request Jul 16, 2024
tlabaj pushed a commit to tlabaj/patternfly-react that referenced this pull request Jul 31, 2024
@jeff-phillips-18 jeff-phillips-18 deleted the typeahead-select-fix branch August 8, 2024 17:23
@jeff-phillips-18 jeff-phillips-18 restored the typeahead-select-fix branch August 8, 2024 17:24
kmcfaul added a commit that referenced this pull request Aug 8, 2024
* fix(TypeaheadSelect): Add callback on clear selection (#10719)

* fix(CodeEditor) resizeObserver resize loop (#10644)

* fix(CodeEditor) resizeObserver resize loop

* yarn

* add debounce

---------

Co-authored-by: Titani <[email protected]>

* cherry pick fix(SimpleSelect,CheckboxSelect): Handle initial selection(s)

* (Drag and drop): Updated example for multi list to use flex

* docs(Table): add Editable Table example

* fix(DragDrop): fix flexgrow type

* feat(MultiTypeaheadSelect): Add MultiTypeaheadSelect to react-templates (#10757)

* feat(MultiTypeaheadSelect): Add MultiTypeaheadSelect to react-templates

* Update packages/react-templates/src/components/Select/MultiTypeaheadSelect.tsx

Co-authored-by: kmcfaul <[email protected]>

---------

Co-authored-by: Titani Labaj <[email protected]>
Co-authored-by: kmcfaul <[email protected]>

* fix(TypeaheadSelect): Correctly show the newly selected item on selection (#10792)

* feat(TypeaheadSelect) Add creation options to TypeaheadSelect (#10802)

* update MultiTypeaheadSelect to use label instead of chip

* chore(deps): upgrade eslint-plugin-react to the latest (#10739)

* chore(deps): upgrade `eslint-plugin-markdown` to the latest version (#10738)

Signed-off-by: Jon Koops <[email protected]>

* resolve merge conflicts

* feat(eslint-plugin-patternfly-react): update rules for eslint v9 (#10743)

* resolve conflicts for chore(deps): upgrade ESLint to the latest version

* fix yarn lint issue

* fix yarn lint issue

* fix(TypeaheadSelect): Update input value only when appropriate (#10826)

* fix lint errors and demo-app

---------

Signed-off-by: Jon Koops <[email protected]>
Co-authored-by: Jeff Phillips <[email protected]>
Co-authored-by: Dominik Petřík <[email protected]>
Co-authored-by: kmcfaul <[email protected]>
Co-authored-by: Jon Koops <[email protected]>
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.

Bug - TypeaheadSelect - No notification when user clears the current selection
6 participants