Closed AmalChandru closed 2 years ago
Putting this here in hope of someone can make use of this.
window.addEventListener("click", (e) => { if (e.target.getAttribute("id") === "text-area") { document.querySelector(".ks-input-suggestions").classList.add("hidden"); } });
Are there any suggestions on how to implement this? I think I have to edit
handleKeyUp( )
fromsuggestion-box.ts
. Little bit confused about how to listen to click events within the text field. Thanks in advance.