-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
area: componentsRelated to the React componentsRelated to the React componentsbugSomething isn't workingSomething isn't workingcomponent: date-filterDateFilter/RelativeDateFilter componentsDateFilter/RelativeDateFilter componentspriority: highImportant, should be fixed soonImportant, should be fixed soonstatus: needs-triageNew issue awaiting evaluationNew issue awaiting evaluation
Milestone
Description
Bug Description
This is a regression of issue #66 which was previously fixed. The DateFilter component is again experiencing state management issues that cause unexpected behavior when switching between modes and filter types.
Steps to Reproduce
Issue 1: Filter type resets to 'equals'
- Open DateFilter in relative mode
- Enter a value (e.g., 'today')
- Switch filter type to 'before'
- Click Apply
- Result: Filter type immediately resets back to 'equals'
- Try changing to 'before' or 'inRange' again
- Result: Keeps reverting to 'equals'
Issue 2: Cannot switch from relative to absolute mode
- Open DateFilter in relative mode with 'today' entered
- Try to toggle to absolute date mode
- Result: Mode switches back to relative automatically
- Try to delete 'today' from the input
- Result: 'today' reappears
Expected Behavior
- Filter type selections (equals, before, after, inRange) should persist when applied
- Mode switching between relative and absolute should work without reverting
- User input should be deletable
Additional Context
- This was previously fixed in the PR that closed DateFilter: State resets and mode switching issues #66
- The regression may have been introduced during merge conflicts or subsequent changes
- Affects both column filters and sidebar filters
Environment
- ag-grid-react-components version: v0.2.0-rc1
- Branch: release/v0.2.0-rc2
Metadata
Metadata
Assignees
Labels
area: componentsRelated to the React componentsRelated to the React componentsbugSomething isn't workingSomething isn't workingcomponent: date-filterDateFilter/RelativeDateFilter componentsDateFilter/RelativeDateFilter componentspriority: highImportant, should be fixed soonImportant, should be fixed soonstatus: needs-triageNew issue awaiting evaluationNew issue awaiting evaluation
Projects
Status
✅ Done