Skip to content

Regression: DateFilter state management issues from #66 have returned #72

@ryanrozich

Description

@ryanrozich

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'

  1. Open DateFilter in relative mode
  2. Enter a value (e.g., 'today')
  3. Switch filter type to 'before'
  4. Click Apply
  5. Result: Filter type immediately resets back to 'equals'
  6. Try changing to 'before' or 'inRange' again
  7. Result: Keeps reverting to 'equals'

Issue 2: Cannot switch from relative to absolute mode

  1. Open DateFilter in relative mode with 'today' entered
  2. Try to toggle to absolute date mode
  3. Result: Mode switches back to relative automatically
  4. Try to delete 'today' from the input
  5. 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

Environment

  • ag-grid-react-components version: v0.2.0-rc1
  • Branch: release/v0.2.0-rc2

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: componentsRelated to the React componentsbugSomething isn't workingcomponent: date-filterDateFilter/RelativeDateFilter componentspriority: highImportant, should be fixed soonstatus: needs-triageNew issue awaiting evaluation

    Projects

    Status

    ✅ Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions