mirror of
https://github.com/vale981/Vulcan
synced 2025-03-05 17:41:43 -05:00
Merge pull request #2003 from mattblackdev/devel
[vulcan:ui-bootstrap] fix duplicate "noneOption" on rerendering the Select component
This commit is contained in:
commit
59ee2a6797
1 changed files with 2 additions and 3 deletions
|
@ -9,9 +9,8 @@ const SelectComponent = ({refFunction, inputProperties, ...properties}, { intl }
|
|||
value: '',
|
||||
disabled: true,
|
||||
};
|
||||
inputProperties.options = [noneOption, ...inputProperties.options];
|
||||
|
||||
return <Select {...inputProperties} ref={refFunction}/>
|
||||
|
||||
return <Select {...inputProperties} options={[noneOption, ...inputProperties.options]} ref={refFunction}/>
|
||||
};
|
||||
|
||||
SelectComponent.contextTypes = {
|
||||
|
|
Loading…
Add table
Reference in a new issue