selectize.js icon indicating copy to clipboard operation
selectize.js copied to clipboard

Allow text selection when input type="text"

Open mb-dev opened this issue 11 years ago • 8 comments

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.

mb-dev avatar Jan 20 '14 08:01 mb-dev

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

joallard avatar Jul 21 '16 00:07 joallard

Oops

joallard avatar Jul 21 '16 00:07 joallard

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");}
});

rwcorbett avatar Apr 24 '17 20:04 rwcorbett

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

markhealey avatar Jun 14 '19 16:06 markhealey

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.

MathieuDR avatar Jul 02 '19 12:07 MathieuDR

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.

Sebbb avatar May 18 '20 19:05 Sebbb

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

github-actions[bot] avatar Jan 13 '21 02:01 github-actions[bot]

Reopen, please.

markhealey avatar Jan 19 '21 17:01 markhealey