File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1919 "reflex/components/core/helmet.pyi" : " 43f8497c8fafe51e29dca1dd535d143a" ,
2020 "reflex/components/core/html.pyi" : " ea5919db8c8172913185977df900f36b" ,
2121 "reflex/components/core/sticky.pyi" : " a9b4492e423f1dd4ccbf270c8ea90157" ,
22- "reflex/components/core/upload.pyi" : " c11465a3a88e3a374251dd1a16582938 " ,
22+ "reflex/components/core/upload.pyi" : " 360fb929edf960aca289a37d0433fc38 " ,
2323 "reflex/components/core/window_events.pyi" : " 76bf03a273a1fbbb3b333e10d5d08c30" ,
2424 "reflex/components/datadisplay/__init__.pyi" : " 52755871369acbfd3a96b46b9a11d32e" ,
2525 "reflex/components/datadisplay/code.pyi" : " b86769987ef4d1cbdddb461be88539fd" ,
Original file line number Diff line number Diff line change 3535from reflex .utils .imports import ImportVar
3636from reflex .vars import VarData
3737from reflex .vars .base import Var , get_unique_variable_name
38+ from reflex .vars .function import FunctionVar
3839from reflex .vars .sequence import LiteralStringVar
3940
4041DEFAULT_UPLOAD_ID : str = "default"
@@ -111,8 +112,7 @@ def clear_selected_files(id_: str = DEFAULT_UPLOAD_ID) -> EventSpec:
111112 # UploadFilesProvider assigns a special function to clear selected files
112113 # into the shared global refs object to make it accessible outside a React
113114 # component via `run_script` (otherwise backend could never clear files).
114- func = Var ("__clear_selected_files" )._as_ref ()
115- return run_script (f"{ func } ({ id_ !r} )" )
115+ return run_script (Var ("__clear_selected_files" )._as_ref ().to (FunctionVar ).call (id_ ))
116116
117117
118118def cancel_upload (upload_id : str ) -> EventSpec :
You can’t perform that action at this time.
0 commit comments