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: allow reset options on clear search #991

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

sagardspeed2
Copy link
Contributor

@sagardspeed2 sagardspeed2 commented Jan 16, 2025

Describe your changes

Allow reset options on clear search in multiselect and search

Screenshots [Optional]

Issue ticket number and link

Closes #

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have added tests
  • I have added a changeset pnpm changeset add
  • I have added example usage in the kitchen sink app

@sagardspeed2 sagardspeed2 requested review from evshi, anserwaseem and justEhmadSaeed and removed request for evshi January 16, 2025 06:52
@sagardspeed2 sagardspeed2 self-assigned this Jan 16, 2025
Copy link
Contributor

github-actions bot commented Jan 16, 2025

Visit the preview URL for this PR (updated for commit 2bef4c4):

https://react-kitchen-sink-dev--pr991-fix-update-multisele-dthds9wk.web.app

(expires Fri, 24 Jan 2025 14:43:48 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 6267897ade2ba783b6db70a53a60fc3946d625e9

Copy link

changeset-bot bot commented Jan 16, 2025

🦋 Changeset detected

Latest commit: e5eaebf

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@ensembleui/react-runtime Patch
@ensembleui/react-kitchen-sink Patch
@ensembleui/react-preview Patch
@ensembleui/react-starter Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@@ -119,7 +119,7 @@ export const Search: React.FC<SearchProps> = ({

useDebounce(
() => {
if (onSearchAction?.callback && !isEmpty(searchValue)) {
Copy link
Member

Choose a reason for hiding this comment

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

@sagardspeed2, didn't we add this for a reason previously? here: https://github.com/EnsembleUI/ensemble-react/pull/909/files#diff-c40bba994aece7636430625fad970ec08c0334f7edc12464e796ea3375086432R118

Could you please confirm that removing this won't cause any regressions?

Copy link
Contributor

@evshi evshi left a comment

Choose a reason for hiding this comment

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

Needs tests to avoid regressions like @sharjeelyunus is mentioning

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.

3 participants