Skip to content

Synthetic event warning #14

@aprilmintacpineda

Description

@aprilmintacpineda
  • React@15.4.2
  • React-Scrollbar-js@1.0.1
Warning: This synthetic event is reused for performance reasons. If you're seeing this, you're accessing the property `shiftKey` on a released/nullified synthetic event. This is set to null. If you must keep the original synthetic event around, use event.persist(). See https://fb.me/react-event-pooling for more information.
import ReactScrollbarJS from 'react-scrollbar-js';

// etc.

// on the render
<div className="post-right">
	<ReactScrollbarJS style={{height: '100%', width: '100%'}}>
		<p className="section-title">You may also like</p>
		{this.props.related_posts.length > 0? this.props.related_posts.map((post, i) =>
			<div className="related-post-wrapper" key={i}>
				<img src={settings.storage_path + '/images/' + post.cover_image} />
				<Link to={'/post/' + post.public_id}>{post.title}</Link>
			</div>
		): <p>There are no related posts to show.</p>}
	</ReactScrollbarJS>
</div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions