Skip to content

Commit 51a4fee

Browse files
authored
Fixed ActivityPub reply button enabled condition (#22468)
closes AP-873 - When the textarea for a reply is populated, but not focused, the "post" button goes grey. The user expectation is that if there's content in the textarea then the button stays black to indicate it's possible to click on it to post
1 parent 2b60bd9 commit 51a4fee

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

apps/admin-x-activitypub/src/components/global/APReplyBox.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,7 @@ const APReplyBox: React.FC<APTextAreaProps> = ({
113113
className
114114
);
115115

116-
// We disable the button if either the textbox isn't focused, or the reply is currently being sent.
117-
const buttonDisabled = !isFocused || replyMutation.isLoading;
116+
const buttonDisabled = !textValue || replyMutation.isLoading;
118117

119118
let placeholder = 'Reply...';
120119
// eslint-disable-next-line @typescript-eslint/no-explicit-any

0 commit comments

Comments
 (0)