From 2dec47e1792fc86f83ed950cc8c732c5696d0701 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 8 Oct 2021 17:09:55 -0500 Subject: [PATCH] MaterialStatus: fix focused state --- app/soapbox/components/material_status.js | 6 +++--- app/soapbox/components/status.js | 9 +++++++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/app/soapbox/components/material_status.js b/app/soapbox/components/material_status.js index 25fd24e05..6454497c5 100644 --- a/app/soapbox/components/material_status.js +++ b/app/soapbox/components/material_status.js @@ -19,9 +19,9 @@ export default class MaterialStatus extends React.Component { } return ( -
-
- +
+
+
); diff --git a/app/soapbox/components/status.js b/app/soapbox/components/status.js index 2b4c43bc3..a3efe15b8 100644 --- a/app/soapbox/components/status.js +++ b/app/soapbox/components/status.js @@ -93,6 +93,11 @@ class Status extends ImmutablePureComponent { group: ImmutablePropTypes.map, displayMedia: PropTypes.string, allowedEmoji: ImmutablePropTypes.list, + focusable: PropTypes.bool, + }; + + static defaultProps = { + focusable: true, }; // Avoid checking props that are functions (and whose equality will always @@ -336,7 +341,7 @@ class Status extends ImmutablePureComponent { return ( -
+
@@ -490,7 +495,7 @@ class Status extends ImmutablePureComponent { return ( -
+
{prepend}