Masen Furer
Masen Furer
@TimChild I was able to reproduce this, but i unfortunately don't see an easy fix with the radix select component. If I rewrite it using the plain HTML select element,...
I think the existing code already mostly works without adding all this extra structure. There just seems to be a problem when inlining the `rx.download` event handler: ```python import reflex...
```diff diff --git a/reflex/components/core/upload.py b/reflex/components/core/upload.py index dfc62bc0..ae1e5f29 100644 --- a/reflex/components/core/upload.py +++ b/reflex/components/core/upload.py @@ -140,7 +140,7 @@ def get_upload_url(file_path: str) -> Var[str]: """ Upload.is_used = True - return Var.create_safe(f"{uploaded_files_url_prefix}/{file_path}") + return...
Here is the repro ```python import reflex as rx class State(rx.State): button_text: str = "Download" def do_download(self): filename = "foo.txt" (rx.get_upload_dir() / filename).write_text("test") print("returning download event") #return rx.download(rx.get_upload_url(filename), filename="bar.csv") return...
i thought the code block already responded to light/dark mode without specifying anything https://github.com/reflex-dev/reflex/blob/67702e092723a829e70f483e68f86c08213543f6/reflex/components/datadisplay/code.py#L447-L449
Sorry accidentally marked this as ready. I ran with the latest pyright and reflex has LOTS of issues `338 errors, 4 warnings, 0 informations` 😢
``` poetry init ``` Add `reflex` as a dep. ``` poetry install poetry run reflex init poetry run reflex run ```
after init, i did `mkdir src` and moved the reflex project dir into `src/` and it still worked for me. you need to have `rxconfig.py` at the top level though
what about something like this ```diff diff --git a/reflex/components/datadisplay/code.py b/reflex/components/datadisplay/code.py index c108a304..1d220a82 100644 --- a/reflex/components/datadisplay/code.py +++ b/reflex/components/datadisplay/code.py @@ -2,6 +2,7 @@ import re from typing import Dict, Literal, Optional, Union...
It's definitely possible to hack an inline style, but a bit ugly ```python rx.text( 'Hello world', #transform=f'rotate({AppState.val}deg)', custom_attrs={'style': rx.Var.create({"transform": "rotate(" + AppState.val.to(str) + "deg)"})}, ), ``` (f-string does not currently...