modal typeahead improvements.

This commit is contained in:
BC
2018-06-28 21:45:57 -07:00
parent 216429bfdb
commit 5f6bc5beea
4 changed files with 8 additions and 5 deletions

View File

@@ -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)

View File

@@ -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}]]]