diff --git a/js/src/forum/components/PostMeta.js b/js/src/forum/components/PostMeta.js index 6c0f4cf6e..ed5e2958d 100644 --- a/js/src/forum/components/PostMeta.js +++ b/js/src/forum/components/PostMeta.js @@ -7,23 +7,23 @@ import fullTime from '../../common/helpers/fullTime'; * a dropdown containing more information about the post (number, full time, * permalink). * - * ### Props + * ### Attrs * * - `post` */ export default class PostMeta extends Component { view() { - const post = this.props.post; + const post = this.attrs.post; const time = post.createdAt(); const permalink = this.getPermalink(post); const touch = 'ontouchstart' in document.documentElement; // When the dropdown menu is shown, select the contents of the permalink // input so that the user can quickly copy the URL. - const selectPermalink = function () { + const selectPermalink = function (e) { setTimeout(() => $(this).parent().find('.PostMeta-permalink').select()); - m.redraw.strategy('none'); + e.redraw = false; }; return (