Closed DhanashreeSathelkar2020 closed 10 months ago
I must be missing something here. Clearing the input value would reset the filter making it basically unusable.
I agree with @kevinbuhmann. This will affect UX negatively. What if user want to see the value behind the filter dropdown? Clearing the filter value will trigger clrDgRefresh event and change the result shown inside datagrid which defeats the purpose of filtering it.
But if what you mean we need another option to clear the filter value (like another button, for example), I agree. Especially if we need to reset the value for the default filter for number column type.
My current solution: just create a custom filter that fits your need.
This is not a bug.
Hi there 👋, this is an automated message. To help Clarity keep track of discussions, we automatically lock closed issues after 14 days. Please look for another open issue or open a new issue with updated details and reference this one as necessary.
This is a bug report for the
@clr
Angular or UI versions of the design system. For the web-component implementation of Clarity (@cds
), visit vmware-clarity/core.Describe the bug
When user type any value in filter and click on close button the filter pop up is hide. How can we clear the filter data on close button. Can we have a event emitter to catch this event?
How to reproduce
https://clarity.design/documentation/datagrid/built-in-filters Please check the current filter behavior. Close button in the filter just close the filter pop up, does not clear the content.
Steps to reproduce the behavior:
Expected behavior
Please provide an option to clear the content in filter search. suggestions: 1. close button should clear the content
Versions
Clarity version: 5.2.0
Framework version: Angular 11
Device: Laptop /Desktop