mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 04:26:41 -04:00

- Added new `FormComponent.isCustomInput` method - Pulled `renderComponent` up from `FormComponentInner` to `FormComponent` - Pulled some input-type-specific logic up when it was universal, or pushed it down when it should be handled by each ui library
16 lines
516 B
JavaScript
16 lines
516 B
JavaScript
import React from 'react';
|
|
import { intlShape } from 'meteor/vulcan:i18n';
|
|
import { Select } from 'formsy-react-components';
|
|
import { registerComponent } from 'meteor/vulcan:core';
|
|
|
|
const SelectMultipleComponent = ({refFunction, inputProperties, ...properties}, { intl }) => {
|
|
inputProperties.multiple = true;
|
|
|
|
return <Select {...inputProperties} ref={refFunction}/>
|
|
};
|
|
|
|
SelectMultipleComponent.contextTypes = {
|
|
intl: intlShape,
|
|
};
|
|
|
|
registerComponent('FormComponentSelectMultiple', SelectMultipleComponent);
|