![](/img/trans.png)
[英]Laravel Livewire wire:submit.prevent not working as intended
[英]Laravel Livewire + Firefox: wire:submit.prevent not working, form submitted as GET request
我在 Laravel Livewire 和使用 Firefox 提交表單時遇到問題。它在 Chrome 中運行良好。 在 Firefox - 它有時工作正常並通過 livewire 提交表單,但大多數情況下它作為 GET 請求提交 - https://example.com/?formResponse=...
這是我的代碼的一小段。
<form wire:submit.prevent="update" class="d-flex"> <textarea name="formResponse" wire:model.defer="formResponse" id="response" class="form-control h-50"></textarea> <button class="btn btn-primary">Uložiť</button> </form>
嘗試:
<button type="button" class="btn btn-primary">Uložiť</button>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.