This project is read-only.
1
Vote

autoCompleteFirstMatch demo doesn't allow spaces

description

on http://www.fairwaytech.com/flexbox/flexbox-demos#demo1

chrome, os x

I try to type "united states" into the box. When I get to the space the selected text always resets to before the space after I type it. So I can't type past the space in 'united states' and am left with "united arab emerites" in, unable to filter further.

file attachments

comments

olegbraun wrote Apr 17, 2014 at 1:49 AM

here is some changes to the original jquery.flexbox.js
it will allow for spaces with "autoCompleteFirstMatch" option.

It manually add white space and not changing actual hidden value.
Also had to add check for backspace, when deleting inside selection.
This is only raw solution with maybe not so good coding. Use at own risk.