반응 선택 구성 요소가 있고 id 필드가 설정되지 않았습니까? ID를 설정할 수 있습니까?react-select가 id를 설정할 수 없음
<Select
id={field}
className="reqform-project-dropdown"
{...f.props(field)}
disabled={
readOnly ||
onEdit ||
f.props(field).read_only
}
clearable={false}
options={this.props.common.tests}
onChange={this.handleProjChange.bind(this, field,
f.props(field).multiple,
'test_req_unique_prefix')}
labelKey="test_name"
valueKey="test_req_unique_prefix"
/>
부모 div의 ID를 설정하는 데 의존하고 있지만 선택에 대해 직접 할 수없는 것처럼 보입니다.
[이] (https://github.com/JedWatson/react-select) 라이브러리에 대해 이야기하고 있습니까? –
'value' 소품이 없습니다. – lux
이 'id'소품으로 무엇을 달성하고 싶습니까? – cfraser