Skip to content
This repository was archived by the owner on Apr 18, 2026. It is now read-only.
This repository was archived by the owner on Apr 18, 2026. It is now read-only.

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

Open

Description

@mb-dev

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.

Activity

  1. joallard commented on Jul 21, 2016

    @joallard
    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
  2. joallard commented on Jul 21, 2016

    @joallard
    Member

    Oops

  3. added this to the 1.0 milestone on Jul 21, 2016
  4. rwcorbett commented on Apr 24, 2017

    @rwcorbett

    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");}
    });
    
  5. markhealey commented on Jun 14, 2019

    @markhealey

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

  6. MathieuDR commented on Jul 2, 2019

    @MathieuDR

    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.

  7. Sebbb commented on May 18, 2020

    @Sebbb

    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.

  8. github-actions commented on Jan 13, 2021

    @github-actions
    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

  9. markhealey commented on Jan 19, 2021

    @markhealey

    Reopen, please.

  10. added
    pending review
    and removed on Jan 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpending reviewux issue

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions