mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-21 08:28:12 +00:00
fix(chat-input): 修复 @ 提及下拉框层级问题
设置 mention 下拉容器的 zIndex 为 modalTransferIndex + 1000, 确保在弹窗等高层级元素中正常显示。
This commit is contained in:
parent
9cb8c92492
commit
c8c27e808f
@ -1278,6 +1278,7 @@ export default {
|
|||||||
for (let i = 0; i < containers.length; i++) {
|
for (let i = 0; i < containers.length; i++) {
|
||||||
containers[i].classList.remove(...Object.values(mentionMap));
|
containers[i].classList.remove(...Object.values(mentionMap));
|
||||||
containers[i].classList.add(mentionName);
|
containers[i].classList.add(mentionName);
|
||||||
|
containers[i].style.zIndex = window.modalTransferIndex + 1000;
|
||||||
}
|
}
|
||||||
let mentionSourceCache = null;
|
let mentionSourceCache = null;
|
||||||
this.getMentionSource(mentionChar, searchTerm, array => {
|
this.getMentionSource(mentionChar, searchTerm, array => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user