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

Horizontal filter reset #1563

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

shayan-roshan
Copy link
Collaborator

fixed the error caused when reset button was clicked and no horizontal filters were selected

resolves #1495

Description

when no formly forms were selected in the horiontal filters i cleared the model so it can clear the search input

Motivation and Context

Type of Change (Select One and Apply Github Label)

  • [x ] Bug fix (non-breaking change which fixes an issue) -> Apply bugfix label
  • New feature (non-breaking change which adds functionality) -> Apply enhancement label
  • Breaking change (fix or feature that would cause existing functionality to change) -> Apply breaking label

Screenshots (if appropriate):

Which browsers have you tested?

  • Internet Explorer 11
  • Edge
  • Chrome
  • Firefox
  • Safari

Checklist:

Copy link

PR Preview Action v1.4.8
🚀 Deployed preview to https://GSA.github.io/sam-design-system/pr-preview/pr-1563/
on branch gh-pages at 2024-11-15 00:27 UTC

@@ -93,7 +93,8 @@
</div>

<div *ngIf="showReset" class="horizontal-reset margin-left-2 text-right">
<sds-formly-reset [options]="options" [defaultModel]="{}" (resetClicked)="resetClicked.emit()"></sds-formly-reset>
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is changing what events are being emitted. resetClicked is no longer being emitted and filterChange is now being emitted when reset is clicked.

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.

Horizontal Filter Reset Not Working
2 participants