-
Notifications
You must be signed in to change notification settings - Fork 386
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
Markdown code block is not selectable #1753
Comments
I'm using Windows 11 and flt in the command: flet app.py -d and I also can't select with the mouse pointer and the copy button doesn't display |
Please try using the |
This issue seems to persist even if In this example, the last two Hello Worlds are the only ones displayed in a code block and they are both not selectable.
|
The code inside Markdown is rendered slightly differently. We could look into that some day. |
Thanks! By chance, do you have any suggested workarounds? As the original reporter noted:
If you were approaching this situation, how would you handle it? |
Alright, seems like I just fixed that issue: #3236 Works with When you set But we you leave |
Amazingly quick - thank you. I appreciate how quickly you triage issues, not mention address them. Much appreciated and gives me confidence in the framework as a whole. |
[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.
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
):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.
The text was updated successfully, but these errors were encountered: