|
@ -685,7 +685,17 @@ onMounted(() => { |
|
|
document.addEventListener('click', e => { |
|
|
document.addEventListener('click', e => { |
|
|
let box = document.getElementById('keyboard_formula') |
|
|
let box = document.getElementById('keyboard_formula') |
|
|
let room = document.getElementById('id_formula') |
|
|
let room = document.getElementById('id_formula') |
|
|
if (!box?.contains(e.target) && e.target != room) { |
|
|
|
|
|
|
|
|
const arr = [ |
|
|
|
|
|
'hg-candidate-box-next', |
|
|
|
|
|
'hg-candidate-box-btn-active', |
|
|
|
|
|
'hg-candidate-box-prev', |
|
|
|
|
|
'hg-candidate-box-list-item', |
|
|
|
|
|
] |
|
|
|
|
|
if ( |
|
|
|
|
|
!box?.contains(e.target) && |
|
|
|
|
|
e.target != room && |
|
|
|
|
|
!arr.includes(Array.from(e.target.classList)[0]) |
|
|
|
|
|
) { |
|
|
showkeyboard.value = false |
|
|
showkeyboard.value = false |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|