mirror of
https://github.com/we-promise/sure.git
synced 2026-04-11 00:04:47 +00:00
Add exchange rate feature with multi-currency transactions and transfers support (#1099)
Co-authored-by: Pedro J. Aramburu <pedro@joakin.dev>
This commit is contained in:
committed by
GitHub
parent
8e81e967fc
commit
f699660479
@@ -9,6 +9,9 @@ export default class extends Controller {
|
||||
const inputEvent = new Event("input", { bubbles: true })
|
||||
this.inputTarget.dispatchEvent(inputEvent)
|
||||
|
||||
const changeEvent = new Event("change", { bubbles: true })
|
||||
this.inputTarget.dispatchEvent(changeEvent)
|
||||
|
||||
const form = this.element.closest("form")
|
||||
const controllers = (form?.dataset.controller || "").split(/\s+/)
|
||||
if (form && controllers.includes("auto-submit-form")) {
|
||||
|
||||
Reference in New Issue
Block a user