redirects, middleware, Transport, set/capture error status (#4751)
* wip: redirect * redirect example * fix file upload not in a form * wip * deny missing cfgs * wip: add router fallback but it's not working * fix suspense bug after rebuilds that queued work * more cleanup * add test for error codes * add helpful comment * bring back middleware annotation * fix cfg * add server feature * fix doctest * just disable liveview test for now * fix liveview * dont send init * cache more playwright! * add more pkgs to cache
This commit is contained in:
1 parent
8a81475ba8
commit
9243ef4128
35 files changed
+935
-800
No files matched your search
@@ -196,11 +196,13 @@ fn file_dialog_responder(
|
||||
|
||||
let file_list = file_dialog.get_file_event();
|
||||
|
||||
// Get the position of the entry we're updating, so we can insert new entries in the same place
|
||||
// If we can't find it, just append to the end. This is usually due to the input not being in a form element.
|
||||
let position_of_entry = file_dialog
|
||||
.values
|
||||
.iter()
|
||||
.position(|x| x.key == file_dialog.target_name)
|
||||
.unwrap_or(0);
|
||||
.unwrap_or(file_dialog.values.len());
|
||||
|
||||
// Remove any existing entries
|
||||
file_dialog
|
||||
|
||||
Reference in new issue
Block a user