Skip to content

Allow text selection when input type="text" #256

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mb-dev opened this issue Jan 20, 2014 · 8 comments
Open

Allow text selection when input type="text" #256

mb-dev opened this issue Jan 20, 2014 · 8 comments
Labels
enhancement pending review This issue was closed as stale; since then additional review has been requested. ux issue
Milestone

Comments

@mb-dev
Copy link

mb-dev commented Jan 20, 2014

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.

@joallard
Copy link
Member

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 joallard reopened this Jul 21, 2016
@joallard
Copy link
Member

Oops

@rwcorbett
Copy link

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 rwcorbett mentioned this issue Apr 24, 2017
@markhealey
Copy link

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

@MathieuDR
Copy link

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.

@Sebbb
Copy link

Sebbb commented May 18, 2020

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.

@github-actions
Copy link
Contributor

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

@markhealey
Copy link

Reopen, please.

@risadams risadams reopened this Jan 21, 2021
@risadams risadams added pending review This issue was closed as stale; since then additional review has been requested. and removed no-issue-activity labels Jan 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement pending review This issue was closed as stale; since then additional review has been requested. ux issue
Projects
None yet
Development

No branches or pull requests

7 participants