Fixes A issue
This commit is contained in:
@@ -147,10 +147,12 @@
|
|||||||
[:div {:hx-trigger "changed"
|
[:div {:hx-trigger "changed"
|
||||||
:hx-target "next *"
|
:hx-target "next *"
|
||||||
:hx-swap "outerHTML"
|
: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)
|
:hx-get (bidi/path-for ssr-routes/only-routes ::route/location-select)
|
||||||
:x-dispatch:changed "[clientId, accountId]"
|
:x-dispatch:changed "[clientId, accountId]"}]
|
||||||
#_#_:x-init "$watch('clientId', cid => $dispatch('changed', $data)); $watch('accountId', cid => $dispatch('changed', $data) )"}]
|
|
||||||
(location-select* {:name (fc/field-name)
|
(location-select* {:name (fc/field-name)
|
||||||
:account-location (:account/location (:journal-entry-line/account @account))
|
:account-location (:account/location (:journal-entry-line/account @account))
|
||||||
:client-locations client-locations
|
:client-locations client-locations
|
||||||
|
|||||||
Reference in New Issue
Block a user