From aa4b58d7aa6347a2fb069914800f97683e707831 Mon Sep 17 00:00:00 2001 From: Alexander Skvortsov Date: Sun, 9 Aug 2020 23:19:44 -0400 Subject: [PATCH] update: forum/components/PostMeta --- js/src/forum/components/PostMeta.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 (