Skip to content

[BUG] DialogEvent has no method emit when calling component dialog. #2214

@alexrecuenco

Description

@alexrecuenco

Dialog Events don't work in ComponentDialogs

Version

4.16.1, main branch at time of writing

Describe the bug

File ".../workspace/.venv/lib/python3.12/site-packages/botbuilder/dialogs/dialog.py", line 128, in on_dialog_event
handled = await dialog_context.parent.emit(
^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'DialogContext' object has no attribute 'emit'

To Reproduce

Steps to reproduce the behavior:

  1. Run emit_event on a component dialog

Expected behavior

It doesn't throw an error

Metadata

Metadata

Assignees

Labels

bugIndicates an unexpected problem or an unintended behavior.needs-triageThe issue has just been created and it has not been reviewed by the team.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions