[PR #1959] [MERGED] fix: prevent emoji picker from closing when clicking search input #5364

Closed
opened 2026-04-16 13:35:33 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-vikunja/vikunja/pull/1959
Author: @kolaente
Created: 12/9/2025
Status: Merged
Merged: 12/9/2025
Merged by: @kolaente

Base: mainHead: kolaente/fix-emoji-search-close


📝 Commits (1)

  • 4fad658 fix: prevent emoji picker from closing when clicking search input

📊 Changes

2 files changed (+7 additions, -16 deletions)

View changed files

📝 frontend/src/components/input/Reactions.vue (+3 -3)
📝 frontend/src/helpers/closeWhenClickedOutside.ts (+4 -13)

📄 Description

Resolves https://community.vikunja.io/t/cannot-search-for-reaction-emoji/4207/1

Summary

  • Fixes the emoji reaction picker closing immediately when clicking inside the search box
  • The issue occurred because vuemoji-picker wraps emoji-picker-element which uses Shadow DOM
  • The closeWhenClickedOutside helper was using parentElement traversal which doesn't cross shadow boundaries

Changes

  • Updated closeWhenClickedOutside to use event.composedPath() which properly includes elements inside Shadow DOM
  • Updated Reactions.vue to pass the actual DOM element ($el) instead of the Vue component instance

Test plan

  • Open a task detail view
  • Click the emoji reaction button (smiley face) to open the picker
  • Click inside the search box
  • Verify the picker stays open and you can type to search
  • Verify clicking outside the picker still closes it
  • Test in both Firefox and Chromium-based browsers

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-vikunja/vikunja/pull/1959 **Author:** [@kolaente](https://github.com/kolaente) **Created:** 12/9/2025 **Status:** ✅ Merged **Merged:** 12/9/2025 **Merged by:** [@kolaente](https://github.com/kolaente) **Base:** `main` ← **Head:** `kolaente/fix-emoji-search-close` --- ### 📝 Commits (1) - [`4fad658`](https://github.com/go-vikunja/vikunja/commit/4fad65860129140d80971c98a13cf3219598ceb4) fix: prevent emoji picker from closing when clicking search input ### 📊 Changes **2 files changed** (+7 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/components/input/Reactions.vue` (+3 -3) 📝 `frontend/src/helpers/closeWhenClickedOutside.ts` (+4 -13) </details> ### 📄 Description Resolves https://community.vikunja.io/t/cannot-search-for-reaction-emoji/4207/1 ## Summary - Fixes the emoji reaction picker closing immediately when clicking inside the search box - The issue occurred because `vuemoji-picker` wraps `emoji-picker-element` which uses Shadow DOM - The `closeWhenClickedOutside` helper was using `parentElement` traversal which doesn't cross shadow boundaries ## Changes - Updated `closeWhenClickedOutside` to use `event.composedPath()` which properly includes elements inside Shadow DOM - Updated `Reactions.vue` to pass the actual DOM element (`$el`) instead of the Vue component instance ## Test plan - [ ] Open a task detail view - [ ] Click the emoji reaction button (smiley face) to open the picker - [ ] Click inside the search box - [ ] Verify the picker stays open and you can type to search - [ ] Verify clicking outside the picker still closes it - [ ] Test in both Firefox and Chromium-based browsers 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-16 13:35:33 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#5364