Hello everyone!
I’m new to using Polaris. I’m unsure if I’m missing something, or if the TextField component is broken.
Polaris version is: 13.9.2
I have a TextField:
<TextField label={"Discord Guild ID"} autoComplete={"off"} value={formData.discordId} onChange={(value) => {
handleChange("discordId")(value);
console.log("Discord ID: ", value);
}}/>
With formData being:
const [formData, setFormData] = useState({discordId: ""});
And handleChange being:
const handleChange = (field: string) => (value: string) => setFormData({...formData, [field]: value});
For the life of me, I cannot get onChange to fire at all.
Any help would be GREATLY appreciated!