mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
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:
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user