Hi
When a dialog has content and inside the content, I change the state, it is causing the dialog to re-render and the focus is lost from the field in each key press.
Following is a sample code
const [groupName, setGroupName] = useState("");
<DialogComponent ... content={content} />
const content = () => {
return (
<input value={groupName} onChange={(e) => setGroupName(e.target.value)} placeholder="Group name"/>
)
}
Another field which is updating redux and not the state, seems to work ok, maybe because the state is not updated.
Please advice