-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
fix(16337): close DatePicker calendar on away click when inside Modal or ComposedModal #16758
fix(16337): close DatePicker calendar on away click when inside Modal or ComposedModal #16758
Conversation
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.
The changes in fixEventsPlugin.js will be made available from #16742
✅ Deploy Preview for v11-carbon-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -45,6 +47,7 @@ export const Default = () => { | |||
modalHeading="Add a custom domain" | |||
modalLabel="Account resources" | |||
primaryButtonText="Add" | |||
//isNested |
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 think this comment can be removed!!
@@ -109,9 +109,10 @@ export default (config) => (fp) => { | |||
if (inputTo.value) { | |||
fp.setDate( | |||
[inputFrom.value, inputTo.value], | |||
true, | |||
false, |
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.
Does previously sending the second value as true , was forcefully firing onChange event ?
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.
This looks like a great hack @2nikhiltom . Great work I must say !!
fixed via #17072 |
Closes #16337
The root bug with DatePicker was : When using the datepicker with a range selection, the end date calendar does not close when the user clicks away, causing it to always stay open (Issue -> PR)
Fix for #16337 is dependent on PR
Also this issue was happing because
evt.stopPropagation()
was added onMousedown
event to add support for Nest modalTo fix #16337 : I thought to keep this action behind a prop
isNested
, in modal.tsx.evt.stopPropagation()
only when theisNested
prop is present.I am looking for reviews and suggestions on this.
If
isNested
prop works as a fix , I will be implementing this is inComposedModal
as wellTesting / Reviewing
Verify the functionlity when
isNested
is passedisNested
as a prop inModal