keystonejs/keystone-classic
TextArray field type causes client JS errors
Offen
#4.412 geöffnet am 08.08.2017
bughelp wanted
Repository-Metriken
- Stars
- (14.656 Sterne)
- PR-Merge-Metriken
- (Keine gemergten PRs in 30 T)
Beschreibung
Expected behavior
- No JS error when item is selected from
Selectfield. - Additionally
dependsOnworking when set inTextArrayfield.
Actual/Current behavior
- Error thrown:
Uncaught TypeError: nextProps.value.join is not a functionwhenever item is selected from aSelectfield. TextArrayfield does not appear when dependency met.
Steps to reproduce the actual/current behavior
TestList.add({
selection: { type: Types.Select, initial: true, required: true, options: 'a,b,c' },
items: { type: Types.TextArray, initial: true, dependsOn: { selection: 'b' } }
});
Environment
| Software | Version |
|---|---|
| Keystone | 4.0.0-beta.5 |
| Node | 8.2.1 |