mirror of
https://github.com/leptos-rs/leptos.git
synced 2025-12-27 09:54:41 -05:00
feat: add method take for BrowserFormData (#4102)
This commit is contained in:
committed by
GitHub
parent
cf0aa0e4d7
commit
f51c676e0d
@@ -75,6 +75,13 @@ impl DerefMut for BrowserRequest {
|
||||
#[derive(Debug)]
|
||||
pub struct BrowserFormData(pub(crate) SendWrapper<FormData>);
|
||||
|
||||
impl BrowserFormData {
|
||||
/// Returns the raw `web_sys::FormData` struct.
|
||||
pub fn take(self) -> FormData {
|
||||
self.0.take()
|
||||
}
|
||||
}
|
||||
|
||||
impl From<FormData> for BrowserFormData {
|
||||
fn from(value: FormData) -> Self {
|
||||
Self(SendWrapper::new(value))
|
||||
|
||||
Reference in New Issue
Block a user