-
Notifications
You must be signed in to change notification settings - Fork 1.3k
fix: show calendar header in s2 dialog #8621
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
Conversation
This reverts commit 680ddcf.
Build successful! 🎉 |
Build successful! 🎉 |
Build successful! 🎉 |
<CalendarHeading /> | ||
<CalendarButton slot="next"><ChevronRightIcon /></CalendarButton> | ||
</Header> | ||
<Provider |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we already clear some context in
[OverlayTriggerStateContext, null] |
should we clear these there as well? then we don't need to do it in two files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might be worth to do it at the calendar level too in case someone is using it standalone though right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but if a person were to just use a Calendar inside a dialog rather than a DatePicker, then wouldn't this still be an issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess maybe? it might pick up some stray context, but same argument could be made for the overlay trigger state context
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
im fine adding it to CalendarPopover in DatePicker, but i think we'll still need to clear the context in Calendar and RangeCalendar for any standalone cases
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
they'd have the same issue with the overlaytriggerstatecontext too, so that should probably be moved to the same place
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
verified locally that rangecalendar and calendar render just fine in a s2 dialog, will approve after we decide if we wanna clear it at the datepicker level too
we can followup with any small changes later, but merging so we can patch something that works |
Closes
✅ Pull Request Checklist:
📝 Test Instructions:
🧢 Your Project: