example: use a local signal for the input

This commit is contained in:
Greg Johnston 2024-07-24 09:20:09 -04:00
parent 4c4d3dcfa3
commit 43421c56d5

View file

@ -380,7 +380,7 @@ pub fn FileUpload() -> impl IntoView {
</form>
<p>
{move || {
if upload_action.input().read().is_none() && upload_action.value().read().is_none()
if upload_action.input_local().read().is_none() && upload_action.value().read().is_none()
{
"Upload a file.".to_string()
} else if upload_action.pending().get() {