mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 14:54:16 +00:00
2c8f46466b
This allows form submission with checkbox inputs to work. For example: let doit = create_server_action::<DoItSFn>(); <ActionForm action=doit> <input type="checkbox" name="is_good" value="true"/> <input type="submit"/> </ActionForm> #[server(DoItSFn, "/api")] pub async fn doit(#[server(default)] is_good: bool) -> Result<(), ServerFnError> {} If is_good is absent in the request to the server API, `Default::default()` is used instead. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
Makefile.toml |