Skip to content

fix(frontend): add missing onClose prop to conversation panel modals#12219

Merged
amanape merged 4 commits intoOpenHands:mainfrom
Ryanakml:fix/frontend-missing-on-close-props
Dec 31, 2025
Merged

fix(frontend): add missing onClose prop to conversation panel modals#12219
amanape merged 4 commits intoOpenHands:mainfrom
Ryanakml:fix/frontend-missing-on-close-props

Conversation

@Ryanakml
Copy link
Copy Markdown
Contributor

Summary of PR

This PR ensures that confirmation modals in the conversation panel (ConfirmDeleteModal, ConfirmStopModal, and ExitConversationModal) can be dismissed by clicking the dark backdrop or pressing the Escape key. This maintains UI consistency across the application by properly passing the onCancel/onClose handlers to the ModalBackdrop component.

Change Type

  • Bug fix
  • New feature
  • Breaking change
  • Refactor
  • Other (dependency update, docs, typo fixes, etc.)

Checklist

  • I have read and reviewed the code and I understand what the code is doing.
  • I have tested the code to the best of my ability and ensured it works as expected.

Fixes

Resolves #12205

Release Notes

  • Include this change in the Release Notes.
    gif

Added missing onClose functionality to conversation panel modals, allowing them to be dismissed via backdrop click or Escape key.

Copy link
Copy Markdown
Contributor

@amanape amanape left a comment

Choose a reason for hiding this comment

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

Thank you for opening this PR! I’ve added missing tests and confirmed they are valid by undoing your changes and confirming those tests fail. For the future, please add some test coverage, preferably via TDD.

Thank you and happy new year 🎉!

@amanape amanape enabled auto-merge (squash) December 31, 2025 15:04
@amanape amanape merged commit 96d073e into OpenHands:main Dec 31, 2025
24 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.

Add missing onClose prop to conversation panel modals

2 participants