Skip to content

[Serial] Connection is reset when switching focus #853

Open
@florenthemmi

Description

@florenthemmi

Bug Description

The connection is reset when switching focus (changing tab or window for example).
It is a pain to debug something.

How To Reproduce

Steps to reproduce the behavior:

  1. Click on "Show serial"
  2. Type something: "import sys"
  3. Change tab
  4. Module "sys" is not loaded anymore (micro:bit has reset) and all the content is cleared

Expected behavior

Same behavior from previous version: https://python.microbit.org/v/2.
Please note that on the old version the serial is closed only when clicking on the button "Close Serial".

Environment

Desktop:

  • OS: MacOS 12.5
  • Browser: Chrome
  • Version: 103

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions