Skip to content

PM-4647: stop engagement modal calendars opening on focus#1574

Merged
jmgasper merged 1 commit intodevfrom
PM-4647
Apr 1, 2026
Merged

PM-4647: stop engagement modal calendars opening on focus#1574
jmgasper merged 1 commit intodevfrom
PM-4647

Conversation

@jmgasper
Copy link
Copy Markdown
Collaborator

@jmgasper jmgasper commented Apr 1, 2026

What was broken:
Engagement date pickers in assignment, payment, and application modals opened as soon as the modal rendered.

Root cause (if identifiable):
The modal autofocus landed on react-datepicker inputs, and those pickers were still allowed to open on focus.

What was changed:
Added a preventOpenOnFocus pass-through on the shared date picker components and enabled it for the engagement modal date fields, including the payment modal's direct date picker.

Any added/updated tests:
Added regression tests for StartDateTimeInput and PaymentFormModal to verify preventOpenOnFocus is wired through.


Open with Devin

What was broken:
Engagement date pickers in assignment, payment, and application modals opened as soon as the modal rendered.

Root cause:
The modal autofocus landed on react-datepicker inputs, and those pickers were still allowed to open on focus.

What was changed:
Added a preventOpenOnFocus pass-through on the shared date picker components and enabled it for the engagement modal date fields, including the payment modal's direct date picker.

Any added/updated tests:
Added regression tests for StartDateTimeInput and PaymentFormModal to verify preventOpenOnFocus is wired through.
@jmgasper jmgasper requested a review from kkartunov as a code owner April 1, 2026 13:20
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

@jmgasper jmgasper merged commit 671787c into dev Apr 1, 2026
9 checks passed
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.

1 participant