Commit d1318617 authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

[searchfield] show db list immediately

Don't wait for user to enter 3 chars.

This way the "search on input focus lost" isn't that irritating.
parent 88b26bf1
...@@ -57,11 +57,11 @@ searchField p = R.createElement searchFieldComponent p [] ...@@ -57,11 +57,11 @@ searchField p = R.createElement searchFieldComponent p []
iframeRef <- R.useRef null iframeRef <- R.useRef null
let params = let params =
[ searchInput {search} [ searchInput {search}
, if length s.term < 3 -- search with love : <3 -- , if length s.term < 3 -- search with love : <3
then -- then
H.div {}[] -- H.div {}[]
else -- else
H.div {} [ dataFieldNav search dataFields , H.div {} [ dataFieldNav search dataFields
, if isExternal s.datafield , if isExternal s.datafield
then databaseInput { databases: props.databases, search } [] then databaseInput { databases: props.databases, search } []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment