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

Commit c520cc6

Browse files
authored
Custom activity editor now properly sends leftover content (#2255)
* Custom activity editor now properly sends leftover content * Added changelog entry
1 parent 8023cbe commit c520cc6

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
## Fixed
99
- [client] Added circular JSON handling to `forwardToMain.ts` which fixed a bug preventing the Emulator from connecting to Direct Line Speech bots in PR [2242](https://github.com/microsoft/BotFramework-Emulator/pull/2242)
1010
- [client/main] Fixed an issue where the Emulator was failing to detect the final redirect URL when trying to login to Azure in PR [2248](https://github.com/microsoft/BotFramework-Emulator/pull/2248)
11+
- [client] Fixed an issue where the Custom Activity Editor was sending the default model content instead of what was currently being displayed in the editor in PR [2255](https://github.com/microsoft/BotFramework-Emulator/pull/2255)
1112

1213
## v4.12.0 - 2021 - 3 - 05
1314
## Added

packages/app/client/src/ui/dialogs/customActivityEditor/customActivityEditor.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ export const CustomActivityEditor: React.FC<CustomActivityEditorProps> = (props:
8585
// warnings are 4 and errors are 8
8686
setIsValid(!markers.some(m => m.severity >= monaco.MarkerSeverity.Warning));
8787
});
88+
// the editor's model may still have leftover content from the last time it was rendered;
89+
// send it back through the onDidChangeModelContent handler so that it gets set in the React state
90+
editor.setValue(editor.getValue());
8891
}, []);
8992

9093
const onSendActivityClick = useCallback(() => {

0 commit comments

Comments
 (0)