Fixes A issue

This commit is contained in:
2024-11-11 21:50:29 -08:00
parent cb4f88f02a
commit 6291a6c8cd

View File

@@ -147,10 +147,12 @@
[:div {:hx-trigger "changed"
:hx-target "next *"
:hx-swap "outerHTML"
:hx-vals (format "js:{name: '%s', 'client-id': event.detail.clientId || '', 'account-id': event.detail.accountId || '', value: event.detail.location || ''}" (fc/field-name))
:x-hx-val:account-id "accountId"
:x-hx-val:client-id "clientId"
:x-hx-val:value "location"
:hx-vals (hx/json {:name (fc/field-name)})
:hx-get (bidi/path-for ssr-routes/only-routes ::route/location-select)
:x-dispatch:changed "[clientId, accountId]"
#_#_:x-init "$watch('clientId', cid => $dispatch('changed', $data)); $watch('accountId', cid => $dispatch('changed', $data) )"}]
:x-dispatch:changed "[clientId, accountId]"}]
(location-select* {:name (fc/field-name)
:account-location (:account/location (:journal-entry-line/account @account))
:client-locations client-locations