keystonejs/keystone-classic

TextArray field type causes client JS errors

開放

#4,412 建立於 2017年8月8日

 (4 則留言) (0 個反應) (0 位負責人)JavaScript (2,288 個分叉)batch import
bughelp wanted

倉庫指標

星標
 (14,656 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Expected behavior

  1. No JS error when item is selected from Select field.
  2. Additionally dependsOn working when set in TextArray field.

Actual/Current behavior

  1. Error thrown: Uncaught TypeError: nextProps.value.join is not a function whenever item is selected from a Select field.
  2. TextArray field 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

貢獻者指南