Skip to content

Commit d33cff7

Browse files
akolsonclaude
andcommitted
add comment to handleClickOutside in useDropdowns
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent b2cc3ab commit d33cff7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • contentcuration/contentcuration/frontend/shared/views/TipTapEditor/TipTapEditor/composables

contentcuration/contentcuration/frontend/shared/views/TipTapEditor/TipTapEditor/composables/useDropdowns.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ export function useDropdowns() {
7979

8080
const containerRef = ref(null);
8181

82+
// Each instance checks only its own container so
83+
// clicking one dropdown's trigger closes the other.
8284
const handleClickOutside = event => {
8385
if (!containerRef.value || containerRef.value.contains(event.target)) {
8486
return;

0 commit comments

Comments
 (0)