Skip to content

Allow dates to be re-enabled in onRenderCell #657

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

kdagnan
Copy link
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.

Copy link

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
2 checks passed
@t1m0n
Copy link
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