Vulcan/packages/vulcan-ui-bootstrap/lib/components/forms/SelectMultiple.jsx
2018-12-31 15:22:17 +09:00

16 lines
517 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);