Converting preview image modal to use react-bootstrap. Fixes issue where modal would appear behind background on iOS

Этот коммит содержится в:
Christopher Speller
2015-09-24 10:17:58 -04:00
родитель d5343f997d
Коммит c5d78f828a
8 изменённых файлов: 179 добавлений и 165 удалений

Просмотреть файл

@@ -143,10 +143,7 @@ export default class FileAttachment extends React.Component {
>
<a className='post-image__thumbnail'
href='#'
onClick={this.props.handleImageClick}
data-img-id={this.props.index}
data-toggle='modal'
data-target={'#' + this.props.modalId}
onClick={() => this.props.handleImageClick(this.props.index)}
>
{thumbnail}
</a>
@@ -187,9 +184,6 @@ FileAttachment.propTypes = {
// the index of this attachment preview in the parent FileAttachmentList
index: React.PropTypes.number.isRequired,
// the identifier of the modal dialog used to preview files
modalId: React.PropTypes.string.isRequired,
// handler for when the thumbnail is clicked
// handler for when the thumbnail is clicked passed the index above
handleImageClick: React.PropTypes.func
};