Skip to content
Snippets Groups Projects
Commit 0ba8f507 authored by Hermann's avatar Hermann
Browse files

update documentation on list hide timeout

parent 11417004
No related branches found
No related tags found
No related merge requests found
......@@ -143,6 +143,14 @@ export default class SelectList {
]) : m(SearchField, Object.assign({}, {
style: { background: 'rgb(78, 242, 167)' },
onChange: ({ value, focus }) => {
// onChange is called either if the value or focus fo the SearchField
// changes.
// At value change we want to update the search
// at focus changt we hie the list of results. As focus change also
// happens while clicking on an item in the list of results, the list
// is hidden after a short Timeout that has to be sufficiently long
// to register the onclick of the listitem. Can be a problem for different
// OS and browsers.
if (focus) {
this.showList = true;
} else if (!focus) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment