modal typeahead improvements.
This commit is contained in:
@@ -50,7 +50,8 @@
|
||||
(do (select [nil ""])
|
||||
true)))
|
||||
:on-key-up (fn [e]
|
||||
(if (= 13 (.-keyCode e))
|
||||
(if (and (= 13 (.-keyCode e))
|
||||
(seq valid-matches))
|
||||
(do
|
||||
(select (first valid-matches))
|
||||
false)
|
||||
|
||||
@@ -214,7 +214,7 @@
|
||||
:venia/queries [{:query/data [:add-invoice
|
||||
{:invoice new-invoice}
|
||||
[:id :total :outstanding-balance :date :invoice-number
|
||||
[:company [:id :name]]
|
||||
[:company [:id :name :locations]]
|
||||
[:vendor [:id :name]]
|
||||
[:expense_accounts [:amount :id :expense_account_id
|
||||
[:expense_account [:id :name [:parent [:id :name]]]]]]
|
||||
@@ -429,8 +429,6 @@
|
||||
:auto-focus true
|
||||
:field [:vendor-id]
|
||||
:text-field [:vendor-name]
|
||||
:not-found-description #(str "Create vendor '" % "'")
|
||||
:not-found-value #(str %)
|
||||
:event change-event
|
||||
:spec (s/nilable ::invoice/vendor-id)
|
||||
:subscription data}]]]
|
||||
|
||||
Reference in New Issue
Block a user