Skip to content

Commit 3f6a926

Browse files
author
Tim Berners-Lee
committed
babel and eslint
1 parent 2a495a1 commit 3f6a926

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

src/widgets/forms/autocomplete/autocompleteField.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* Form field for doing autocompleete
22
*/
3-
import { ns, style, widgets, store } from 'solid-ui'
3+
import { ns, widgets, store } from 'solid-ui'
44

55
// import { renderAutoComplete } from './autocompletePicker'
66
import { renderAutocompleteControl } from './autocompletBar'
@@ -150,9 +150,12 @@ export function autocompleteField (
150150

151151
lhs.appendChild(widgets.fieldLabel(dom, property as any, form))
152152

153-
// const searchByNameQuery = kb.the(form, ns.ui('searchByNameQuery'), null, formDoc)
154-
155-
rhs.appendChild(await renderAutocompleteControl(dom, subject, options, addOneIdAndRefresh))
153+
renderAutocompleteControl(dom, subject, options, addOneIdAndRefresh).then((control) => {
154+
// console.log('Async load of autocomplete field control finished:' + control)
155+
rhs.appendChild(control)
156+
}, (err) => {
157+
rhs.appendChild(widgets.errorMessageBlock(dom, `Error rendering autocomplete${form}: ${err}`))
158+
})
156159

157160
/*
158161
const field = dom.createElement('input')

0 commit comments

Comments
 (0)