Skip to content
This repository was archived by the owner on Mar 25, 2026. It is now read-only.
This repository was archived by the owner on Mar 25, 2026. It is now read-only.

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

Closed

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

Activity

  1. ryanrozich commented on Jul 15, 2025

    @ryanrozich
    OwnerAuthor

    This issue has been resolved by PR #102 (Release v0.2.0-rc3). The DateFilter component has been completely rewritten using the headless UI pattern, which eliminated all state management issues including the infinite loops.

    The new architecture properly manages state synchronization between the component and AG Grid, preventing the issues that occurred in the previous implementation.

    See HEADLESS_RC3_MIGRATION_PLAN.md for implementation details.

  2. moved this from 📥 Needs Triage to ✅ Done in AG Grid React Components Roadmapon Jul 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions