Look at the upload source code of iview. Why does the manual click not loop indefinitely?

Hello, bosses. Let"s first take a screenshot of the source code
clipboard.png
clipboard.png

.

excuse me, here I click on the element in slot. The event bubbles to the outside that the div, triggers the handleClick, and then the inside manually lets the input element click, so the event will bubble to the outside div again

.
Mar.05,2021

should have nothing to do with vue, such a code will not loop indefinitely, but turning on the delay comment is different.

var domInner = document.querySelector('-sharpinner')
var domWrapper = document.querySelector('-sharpwrapper')
domInner.onclick = () => {
  console.log('inner')
}
domWrapper.onclick = () => {
  // setTimeout(() => {
    console.log('wrapper')
    domInner.click()
  // }, 1000)
}
domInner.click()
Menu