Skip to content

Allow dates to be re-enabled in onRenderCell#657

Merged
t1m0n merged 1 commit intot1m0n:v3from
kdagnan:feature/onRenderCell-disabled-cannot-be-undone
May 5, 2025
Merged

Allow dates to be re-enabled in onRenderCell#657
t1m0n merged 1 commit intot1m0n:v3from
kdagnan:feature/onRenderCell-disabled-cannot-be-undone

Conversation

@kdagnan
Copy link
Copy Markdown
Contributor

@kdagnan kdagnan commented Feb 10, 2025

Once a date has been disabled via onRenderCell, returning { disabled: false } will not re-enable the cell.

This PR addresses this issue.

My current implementation means that the onRenderCell consumer must explicitly return disabled: true/false, if they do not (undefined), it will not be updated.

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
air-datepicker ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 10, 2025 5:52pm

@t1m0n t1m0n added this to the v3.5.4. milestone May 5, 2025
@t1m0n t1m0n merged commit e8c9a83 into t1m0n:v3 May 5, 2025
@t1m0n
Copy link
Copy Markdown
Owner

t1m0n commented May 5, 2025

Thanks!

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.

2 participants