title: PropTypes.string,
value: PropTypes.string,
onChange: PropTypes.func,
- noModal: PropTypes.bool,
container: PropTypes.func,
};
// Toggles opening and closing the dropdown.
handleToggle = ({ target, type }) => {
- const { onModalOpen, noModal } = this.props;
+ const { onModalOpen } = this.props;
const { open } = this.state;
- if (!noModal && isUserTouching()) {
+ if (isUserTouching()) {
if (this.state.open) {
this.props.onModalClose();
} else {
value: PropTypes.string.isRequired,
onChange: PropTypes.func.isRequired,
noDirect: PropTypes.bool,
- noModal: PropTypes.bool,
container: PropTypes.func,
intl: PropTypes.object.isRequired,
};
render () {
- const { value, onChange, onModalOpen, onModalClose, disabled, noDirect, noModal, container, intl } = this.props;
+ const { value, onChange, onModalOpen, onModalClose, disabled, noDirect, container, intl } = this.props;
// We predefine our privacy items so that we can easily pick the
// dropdown icon later.
onModalOpen={onModalOpen}
title={intl.formatMessage(messages.change_privacy)}
container={container}
- noModal={noModal}
value={value}
/>
);