You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
typeDivOrSpan=HTMLDivElement|HTMLSpanElementconstdivOrSpan=document.querySelector<DivOrSpan>(".could-be-div-or-span")!divOrSpan.addEventListener("typo",()=>{})// neither complain or suggest when first typingconstdiv=document.querySelector<HTMLDivElement>(".div")!div.addEventListener("click",()=>{})// doesn't complain either but get suggestions automatically as well as pressing ctrl+i
π Actual behavior
first one neither complain or suggest when first typing.
π Expected behavior
get suggestions automatically as well as pressing ctrl+i like the second one.