Skip to content

focusin event prevents link clicks in Botpress Webchat #1857

@OnlineRebellion

Description

@OnlineRebellion

Describe the bug
When clicking on a link inside the Webchat nothing happens.

To Reproduce
Steps to reproduce the behavior:

  1. Configure the bot to produce links on certain requests, e.g. "Where can i book an appointment?"
  2. The bot should provide a clickable element
  3. Click on the link

Expected behavior
The url should open as a new browser tab.

Screenshots
screenshot-1

Environment (please complete the following information):

  • OS: Windows 11
  • Browser: Chrome, Firefox
  • Browser Version: v138.0.7204.101, v140.0.4
  • Botpress Version: Cloud
  • NodeJS: Cloud

Additional context

  • When removing the event handler on the screenshot, the link works as expected
  • When inspecting the element and clicking on the link, the focus switches to the parent
    element

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions