Fix: Wrap VersionDialog in DropdownProvider for proper context (#9677)

### What problem does this PR solve?

The VersionDialog component was not receiving the correct context for
dropdown handling, causing improper behavior in its interactions.
This PR wraps VersionDialog in DropdownProvider to ensure it gets the
proper context and functions as expected.

### Type of change

- [X] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
uciadonis 2025-08-24 23:18:04 -03:00 committed by GitHub
parent ecaa9de843
commit 23d0b564d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -210,7 +210,9 @@ export default function Agent() {
></EmbedDialog>
)}
{versionDialogVisible && (
<VersionDialog hideModal={hideVersionDialog}></VersionDialog>
<DropdownProvider>
<VersionDialog hideModal={hideVersionDialog}></VersionDialog>
</DropdownProvider>
)}
{settingDialogVisible && (
<SettingDialog hideModal={hideSettingDialog}></SettingDialog>