Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

Commit e7d0089

Browse files
committed
Fixed an issue that was causing adaptive card focus to be blurred when clicking an activity.
1 parent e92279e commit e7d0089

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2424
- [build] Locked `[email protected]` to avoid unecessary import linting changes in PR [2081](https://github.com/microsoft/BotFramework-Emulator/pull/2081)
2525
- [client] Thrown errors in client-side sagas will now be logged in their entirety to the dev tools console in PR [2087](https://github.com/microsoft/BotFramework-Emulator/pull/2087)
2626
- [client] Upload and download attachments bubble texts and background in webchat were hidden. The adjustments have been made to override FileContent class in PR [2088](https://github.com/microsoft/BotFramework-Emulator/pull/2088)
27+
- [client] Fixed an issue that was causing adaptive card focus to be blurred when clicking on an activity in PR [2090](https://github.com/microsoft/BotFramework-Emulator/pull/2090)
2728

2829

2930
## Removed

packages/app/client/src/ui/editor/emulator/parts/chat/chat.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ import { ConnectionMessageContainer } from './connectionMessageContainer';
4949
export interface ChatProps {
5050
botId?: string;
5151
conversationId?: string;
52+
currentUserId?: string;
5253
directLine?: DirectLine;
5354
documentId?: string;
5455
mode?: EmulatorMode;
55-
currentUser?: User;
5656
locale?: string;
5757
webSpeechPonyfillFactory?: () => any;
5858
showContextMenuForActivity?: (activity: Partial<Activity>) => void;
@@ -72,15 +72,16 @@ export class Chat extends PureComponent<ChatProps, ChatState> {
7272
public render() {
7373
const {
7474
botId,
75-
currentUser,
7675
conversationId,
76+
currentUserId = '',
7777
directLine,
7878
locale,
7979
mode,
8080
webchatStore,
8181
webSpeechPonyfillFactory,
8282
} = this.props;
8383

84+
const currentUser = { id: currentUserId, name: 'User' };
8485
const isDisabled = mode === 'transcript' || mode === 'debug';
8586

8687
// Due to needing to make idiosyncratic style changes, Emulator is using `createStyleSet` instead of `createStyleOptions`. The object below: {...webChatStyleOptions, hideSendBox...} was formerly passed into the `styleOptions` parameter of React Web Chat. If further styling modifications are desired using styleOptions, simply pass it into the same object in createStyleSet below.

packages/app/client/src/ui/editor/emulator/parts/chat/chatContainer.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,13 @@ import { Chat, ChatProps } from './chat';
4747

4848
const mapStateToProps = (state: RootState, { documentId }): Partial<ChatProps> => {
4949
const currentChat = state.chat.chats[documentId];
50-
const currentUserId = currentChat.userId || '';
5150

5251
return {
5352
botId: currentChat.botId,
5453
conversationId: currentChat.conversationId,
5554
directLine: currentChat.directLine,
5655
mode: currentChat.mode,
57-
currentUser: { id: currentUserId, name: 'User' } as User,
56+
currentUserId: currentChat.userId || '',
5857
locale: state.clientAwareSettings.locale || 'en-us',
5958
webSpeechPonyfillFactory: state.chat.webSpeechFactories[documentId],
6059
webchatStore: state.chat.webChatStores[documentId],

0 commit comments

Comments
 (0)