Skip to content

Conversation

tonyanziano
Copy link
Contributor

Fixes #1680

===

The root cause is that when an activity is clicked on, it fires off both highlight activity & set inspector objects actions that then modify the chat document in the store.

This change in the store causes the chat.tsx component to re-render and the entire Web Chat control with it, which wipes the state of input fields within adaptive cards.

Preventing that re-render from happening seems like a very hard problem, if not impossible, given our current DOM structure.

The fix here is to intercept clicks & keydown events within activities, check if they originated within an input field, and prevent the highlight and select activity actions from being fired.

@tonyanziano tonyanziano force-pushed the toanzian/#1680-card-input branch from 99dc3ea to 09107ec Compare July 12, 2019 23:26
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.

Since 4.5, Adaptive Card Inputs won't focus
2 participants