diff --git a/liveview-rust/js/liveview-dev.js b/liveview-rust/js/liveview-dev.js index dd2c4f8..4fde369 100644 --- a/liveview-rust/js/liveview-dev.js +++ b/liveview-rust/js/liveview-dev.js @@ -77,9 +77,9 @@ function attach() { console.log("Preventing"); e.preventDefault(); // Form serialization - let form = $(this).serialize(); + // let form = $(this).serialize(); // JSON serialization - // let form = $(this) + let form = JSON.stringify($(this).serializeArray()); let event = submitElems[i].getAttribute('rust-submit'); send_event(SUBMIT_EVENT, event, form); });