Hello,
When I add PNGs to my Drop Down List component the listOnChange function fails to trigger and therefore the state never gets updated. Is there something I'm missing here? Outtakes of my css file can be found at the bottom of the snippet.
Thanks.
listOnChange = args => {
if (args.isInteracted) {
console.log('Change event triggered');
if (args.value == '1') {
this.setState({ choice: 'firstOption' });
console.log(this.state.choice);
} else if (args.value == '2') {
this.setState({ choice: 'secondOption' });
console.log(this.state.choice);
}
}
}; |