rauchg / TextboxList

MooTools tokenizer
100 stars 35 forks source link

editable: {addKeys: 188} not working in combination with autocomplete #2

Open walterra opened 14 years ago

walterra commented 14 years ago

I was not able to use custom keys to add tags in combination with the autocomplete feature. This works to set a comma as a tag separator var input1 = new TextboxList('input1', { bitsOptions:{editable: {addKeys: 188}} });

Using autocomplete breaks it, only return/enter is working var input2 = new TextboxList('input2', { plugins: {autocomplete: { minLength: 1, placeholder: 'Hint Text', queryRemote: true, remote: { url: '' } }}, bitsOptions:{editable: {addKeys: 188}} });

walterra commented 14 years ago

another remark: it makes sense of course if there's a suggestion in the dropdown and one wants to add that via enter/return. however, if there's no suggestion left, it would be good to be able to use the specified alternate key.

faisalwaqar commented 13 years ago

same problem. any updates?

leon commented 12 years ago

I've fixed this in my fork

It was the autocomplete plugin that called setOptions with addKeys:[], stopEnter: false

I have no clue why this should be necessary, but it seems to work without it soooo.