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:
parent
ecaa9de843
commit
23d0b564d3
1 changed files with 3 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue