Commit 4fad658
fix: prevent emoji picker from closing when clicking search input
The emoji picker (vuemoji-picker) uses emoji-picker-element which renders
its internal elements inside Shadow DOM. The closeWhenClickedOutside helper
was using parentElement traversal which doesn't work across shadow boundaries,
causing clicks on the search input to incorrectly trigger the close callback.
This fix:
- Uses event.composedPath() instead of parentElement traversal, which properly
includes elements inside Shadow DOM
- Updates Reactions.vue to pass the actual DOM element ($el) instead of the
Vue component instance
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent c1f789c commit 4fad658
File tree
2 files changed
+7
-16
lines changed- frontend/src
- components/input
- helpers
2 files changed
+7
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
103 | | - | |
| 102 | + | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
18 | 12 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 13 | + | |
23 | 14 | | |
24 | 15 | | |
25 | 16 | | |
| |||
0 commit comments