Bug
What is the current behavior?
I've got a List widget with a Select widget as the field:
- label: "Tags"
name: "tags"
widget: "list"
field:
- label: "Tag"
name: "tag"
widget: "select"
options: [
'11 Plus','A-Level Results','API','Accounting','Analytics','Business Management','CRM','Compare','Edtech',
'Education','Exam','Features','Grammar Schools','Internship','Language Learning',
'Managing a tutoring agency','Marketing','Mobile','National Tutoring Conference','Newsletter',
'Online Tutoring','Open Source','Oxbridge Admissions','Recruitment','SEO','SaaS','Sales',
'Small Business','Small business','Starting a business','Startup','Stripe','Teaching',
'Technology','Testimonial','TutorCruncher','Tutoring','User Experience','VAT'
]
It renders like so:

Which I presume is wrong? The standard drop down renders properly when not in a List widget.
The field that should be a Select here renders as a text field, and when I input two letters (or add one and delete one), I get an error in the console (in ListControl.js:156)
Uncaught TypeError: t.getObjectValue(...).set is not a function
at ListControl.js:156
at onChange (EditorControl.js:68)
at onChange (StringControl.js:30)
at Object.s (react-dom.production.min.js:25)
at Object.invokeGuardedCallback (react-dom.production.min.js:24)
at Object.invokeGuardedCallbackAndCatchFirstError (react-dom.production.min.js:24)
at p (react-dom.production.min.js:29)
at v (react-dom.production.min.js:31)
at y (react-dom.production.min.js:31)
at Array.forEach (<anonymous>)
I'm using Jekyll, Netlify CMS version 1.2.2 and I've tried Chrome and Firefox on Ubuntu and Windows.
I seem unable to find an example of this on someone's site working, so if anyone can point me towards that I'd be happy to take a look.
This is a bug with our handling of field (as opposed to fields). For now, would using fields work for you? Same config, literally just adding an "s", even though you're only using one field.
I just ran into this issue myself. The fields (plural) fix from @erquhart worked for me.
Can I claim this one?
@brianlmacdonald all yours!
Most helpful comment
Can I claim this one?