Skip to content

fix: close language dropdown and chatbotwindow on outside click (#765)#846

Open
Aryanbansal-05 wants to merge 2 commits into
souma9830:masterfrom
Aryanbansal-05:Aryan-05-1
Open

fix: close language dropdown and chatbotwindow on outside click (#765)#846
Aryanbansal-05 wants to merge 2 commits into
souma9830:masterfrom
Aryanbansal-05:Aryan-05-1

Conversation

@Aryanbansal-05

@Aryanbansal-05 Aryanbansal-05 commented Jun 14, 2026

Copy link
Copy Markdown

Description

  • Added useRef + useEffect click-outside handler to the language
    selector dropdown in Navbar.js
  • Added the same pattern to the AI Chatbotwindow component

Closes #765

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes.

  1. Open the app
  2. Click the language dropdown → click outside → it closes
  3. Open the chatbotwindow → click outside → it closes

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

@vercel

vercel Bot commented Jun 14, 2026

Copy link
Copy Markdown

@Aryanbansal-05 is attempting to deploy a commit to the souma9830's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Aryanbansal-05

Copy link
Copy Markdown
Author

Hi @souma9830, could you please review and merge this PR? All checks are passing and there are no conflicts with the base branch. Thank you!

2 similar comments
@Aryanbansal-05

Copy link
Copy Markdown
Author

Hi @souma9830, could you please review and merge this PR? All checks are passing and there are no conflicts with the base branch. Thank you!

@Aryanbansal-05

Copy link
Copy Markdown
Author

Hi @souma9830, could you please review and merge this PR? All checks are passing and there are no conflicts with the base branch. Thank you!

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.

[BUG] Language dropdown and AI Chatbot drawer do not close when clicking outside / clicking away

1 participant