Selectize.js: Allow text selection when input type="text"

Created on 20 Jan 2014  路  8Comments  路  Source: selectize/selectize.js

Currently it is impossible to use arrow keys + left/right, or even CTRL+A to select the item text.

For this request - my interest is in single item selection on a input type="text". So selectize becomes a better 'typeahead' with the nice to have 'add ' prompt. I wonder if this use case can be supported and then the selected item can be inside the hidden input type="text" and thus selectable.

enhancement pending review ux issue

Most helpful comment

I still don't think this is solved.
Sadly.

One of the first things I noticed. Also clicking the 'tag' won't remove or edit it.

Would love an update.

All 8 comments

Annoying indeed. STR:

  1. On http://selectize.github.io/selectize.js/, single item select, choose Tesla
  2. Click back on select
  3. Hit Ctrl+A.
  4. => Text is not selected, expected select-all
  5. Hit Shift+Left
  6. => Text is not selected, expected select last letter

Oops

Any idea what event is firing when ctrl-a is pressed?

It does not appear to be blur, change, clear, or delete based on logging of those events to console:

...
  onDelete: function(d){console.log("selectize onDelete", d);},
  onClear: function(){console.log("selectize onClear");},
  onBlur: function (){console.log("selectize onBlur");},
  onChange: function(){console.log("selectize onChange");}
});

Hi, is there an update on this one? Still present in latest AFAIK.

I still don't think this is solved.
Sadly.

One of the first things I noticed. Also clicking the 'tag' won't remove or edit it.

Would love an update.

Indeed. Ctrl+A works, but removes the entered text. Selecting multiple elements by pressing shift and moving the cursor to the left also does not work and would be a really useful feature.

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

Reopen, please.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

arathael picture arathael  路  33Comments

themikeb picture themikeb  路  16Comments

brianreavis picture brianreavis  路  66Comments

Landish picture Landish  路  17Comments

Trevald picture Trevald  路  14Comments