I want to update a signal on whenever a element gains focus or not(true / false)
<input
style={{'border-radius': borderRadius()}}
class={styles["input-text-element"]}
name={"1"}
ref={inputTextElement}
onfocus={() => {
setIsFocused(true);
console.log("wtf?", isFocused())
}}
onblur={() => {setIsFocused(false)}}
/>
Tho if i do this, the focus gets used onfocus and doesn't trigger the expected behaiviour