Skip to content

Markdown code block is not selectable #1753

@duqcyxwd

Description

@duqcyxwd

[MacOS Native App] The code block is not selectable

I am currently playing with Flet sample code and I have noticed that the code block generated from markdown is not selectable. This is quite frustrating as the code block is the most crucial area where people usually want to copy things from.

Code example to reproduce the issue:
The sample code can be found at https://github.com/flet-dev/examples/blob/main/python/controls/markdown/markdown-code-highlight.py

I just ran it as py markdown-code-highlight.py

Describe the results you received:

A new app window has been generated, but I am unable to select the code block, which means I cannot copy the content.

image

Describe the results you expected:

code block is selectable.

Additional information you deem important (e.g. issue happens only occasionally):

Flet version (pip show flet):

❯ pip show flet
Name: flet
Version: 0.9.0
Summary: Flet for Python - easily build interactive multi-platform apps in Python
Home-page:
Author: Appveyor Systems Inc.
Author-email: hello@flet.dev
License: Apache-2.0
Location: /usr/local/lib/python3.11/site-packages
Requires: copier, flet-runtime, packaging, pydantic, qrcode, watchdog, websocket-client, websockets
Required-by:

Operating system:

macOS Monterey 12.6.7

Additional environment details:
I have also noticed that I am unable to select multiple pieces of content across different sections. For instance, I cannot select multiple paragraphs or select something that includes a heading unit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcontrolsdocsRelated to the documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions