From bc5ec1017fd8a140ec5c30ea9e8ea839d5bf1bda Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 15 十二月 2020 16:22:20 +0800 Subject: [PATCH] 2020-12-15 --- src/tabviews/zshare/mutilform/index.jsx | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/tabviews/zshare/mutilform/index.jsx b/src/tabviews/zshare/mutilform/index.jsx index 6bbb2cc..c0c29d5 100644 --- a/src/tabviews/zshare/mutilform/index.jsx +++ b/src/tabviews/zshare/mutilform/index.jsx @@ -281,8 +281,14 @@ if (!input || input.id !== selectId) return if (input.className === 'ant-select-search__field' && type !== 'init') { - let div = document.getElementById(input.id) - div && div.click && div.click() + let div = input.parentNode + while (div && div.parentNode) { + div = div.parentNode + if (div.id === selectId) { + div && div.click && div.click() + div = null + } + } } else if (input.select) { input.select() } else if (input.focus) { -- Gitblit v1.8.0