Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom activity editor now properly sends leftover content #2255

Merged
merged 2 commits into from
Apr 12, 2021

Conversation

tonyanziano
Copy link
Contributor

@tonyanziano tonyanziano commented Apr 12, 2021

Fixes #2249

===

There was a bug where re-opening the custom activity editor after previously modifying the editor content would still send the default model content of "Hello world!" instead of the currently displayed content.

This PR fixes that by making sure to send the model's content back through correct event handlers when rendered, which then triggers the true value of the editor to be saved in the React component's state. The updated content is then always sent to the bot.

custom-act-fix

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.005%) to 67.819% when pulling a36667a on toanzian/custom-activity-fix into 8023cbe on main.

@cwhitten cwhitten merged commit c520cc6 into main Apr 12, 2021
@cwhitten cwhitten deleted the toanzian/custom-activity-fix branch April 12, 2021 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Custom Activity Editor Sends Placeholder Data When Reopened
3 participants