-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Scrolling behaviour: Chatbot doesn't scroll to the new message when sending Adaptive Cards #3857
Comments
@MatthiasGwiozda For this behavior, I think this is intended due to accessibility - after pressing the button in the card, the focus remains on the clicked button, and therefore there should be no scroll to the bottom. If you could try this out - Please press the Adaptive Card button, then use TAB to move focus within the transcript. The focus should move FROM the pressed button to the next item in the DOM. A potential workaround for this, if scrolling to the bottom is absolutely necessary, would be to add a SCROLL_TO_BOTTOM after a button press. However, for a11y reasons, this wouldn't be recommended. If you decide to go this route, you may also consider changing focus to the sendbox, but again would violate accessibility guidelines. @compulim could you confirm my assumptions above? |
Regarding your comment in 2383, could you share your code modifications that instantiate this behavior? |
I think we should try to repro and see. The main part I am seeing:
|
@MatthiasGwiozda if the button on the Adaptive Card send an "IMBack" instead of "PostBack", will it help? |
This won't be an option in our dialog - flow. We have to save the data that comes from the adaptive - card. With an imBack - Button this is not possible. |
I've added this to R14 candidates. Thanks again for reporting. |
Screenshots
Version
latest(current version: 4.13.0)
Describe the bug
When an adaptive card follows another adaptive card after submitting the first one, the chatbot doesn't scroll to the second adaptive card.
This happens only when the option autoScrollSnapOnActivity is set to true.
Steps to reproduce
Expected behavior
The chatbot should scroll to the second adaptive card, after submitting the first one.
Additional context
We tried a workaround to disable the autoScrollSnapOnActivity - property when an adaptive card is about the get rendered. But this causes another problem.
The text was updated successfully, but these errors were encountered: