Skip to content
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

Combobox: allow enter of custom chips on , key #4672

Open
paulcpederson opened this issue Jun 1, 2022 · 6 comments
Open

Combobox: allow enter of custom chips on , key #4672

paulcpederson opened this issue Jun 1, 2022 · 6 comments
Labels
0 - new New issues that need assignment. ArcGIS Online Issues logged by ArcGIS Online team members. c-combobox Issues that pertain to the calcite-combobox and related components design Issues that need design consultation prior to development. enhancement Issues tied to a new feature or request. p - medium Issue is non core or affecting less that 60% of people using the library

Comments

@paulcpederson
Copy link
Member

Description

We have a tags component which we'd like to allow users to use the comma key as if it was Enter. Receiving multiple reports of users using comma and expecting it to separate them as this is what our previous UI did.

Acceptance Criteria

After typing a term, if using custom-values, typing a comma should act identically to Enter

Relevant Info

No response

Which Component

calcite-combobox

Example Use Case

No response

@paulcpederson paulcpederson added enhancement Issues tied to a new feature or request. 0 - new New issues that need assignment. needs triage Planning workflow - pending design/dev review. labels Jun 1, 2022
@jcfranco
Copy link
Member

@macandcheese @paulcpederson Would we ever need to match , from combobox items? This is the only concern I have if we use it to commit custom values.

@paulcpederson
Copy link
Member Author

Yeah that's a good question. Maybe this is a configurable prop?

@jcfranco
Copy link
Member

Here are some options I see:

  1. always use , to commit (consistent, but we potentially lose matching commas in items)
  2. add prop to include , to commit values (could lead to inconsistent behavior/expectations)
  3. add prop to allow extra committing keys (could lead to inconsistent behavior/ expectations more so than ☝️)
  4. do nothing and only use Enter (consistent, but may require 'retraining' users)

@paulcpederson
Copy link
Member Author

I wonder if there is another way like adding an event on keypress and letting devs wire this up themselves (with a method for tag entry). Similar in concept to #2527 where it's very open ended

@jcfranco
Copy link
Member

I think this is different. I see the value in allowing devs to process custom values, but I don't understand why we need to make the value commit experience customizable. I would expect our combobox's UX for entering custom chips to work the same regardless of the context.

@benelan benelan added the ArcGIS Online Issues logged by ArcGIS Online team members. label Jan 30, 2023
@macandcheese macandcheese added the c-combobox Issues that pertain to the calcite-combobox and related components label Mar 22, 2023
@brittneytewks brittneytewks added design Issues that need design consultation prior to development. p - medium Issue is non core or affecting less that 60% of people using the library and removed needs triage Planning workflow - pending design/dev review. labels Aug 17, 2023
@brittneytewks brittneytewks added this to the Design Backlog milestone Aug 17, 2023
@brittneytewks brittneytewks added the figma changes Issues that require additions or updates to the Figma UI Kit where no `design` label exists label Sep 12, 2023
@brittneytewks brittneytewks removed the figma changes Issues that require additions or updates to the Figma UI Kit where no `design` label exists label Dec 11, 2023
@ashetland
Copy link
Contributor

ashetland commented Oct 8, 2024

Related issue #10499 improves the UX of adding custom items. Could be expanded to account for adding multiple items to address this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 - new New issues that need assignment. ArcGIS Online Issues logged by ArcGIS Online team members. c-combobox Issues that pertain to the calcite-combobox and related components design Issues that need design consultation prior to development. enhancement Issues tied to a new feature or request. p - medium Issue is non core or affecting less that 60% of people using the library
Projects
None yet
Development

No branches or pull requests

8 participants