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

iX-Select: inconsistent reaction on enter key #1579

Open
2 tasks done
network-interface-controller opened this issue Nov 26, 2024 · 1 comment
Open
2 tasks done

iX-Select: inconsistent reaction on enter key #1579

network-interface-controller opened this issue Nov 26, 2024 · 1 comment
Labels
type: bug Something isn't working Workflow: Issue created JIRA issue is created and will be analyzed

Comments

@network-interface-controller

Prerequisites

  • I have read the Contributing Guidelines.
  • I have not leaked any internal/restricted information like screenshots, videos, code snippets, links etc.

What happened?

The reaction of an iX-Select on the key ENTER is not consistent:

  • If a user types in a value that is not yet known and presses ENTER, the value is added to the list and selected
  • If a user types in a value that is already known and presses ENTER, the value is discarded and the previously selected value is selected again

This is confusing and not intuitive for a user.

Expected behavior
If the typed in value is already known it is also selected via ENTER.

What type of frontend framework are you seeing the problem on?

Angular

Which version of iX do you use?

2.5.0

Code to produce this issue.

// see docu

import { Component } from '@angular/core';

@Component({
  selector: 'app-example',
  template: `
    <ix-select editable [value]="value">
      <ix-select-item label="Item 1" value="1"></ix-select-item>
      <ix-select-item label="Item 2" value="2"></ix-select-item>
      <ix-select-item label="Item 3" value="3"></ix-select-item>
      <ix-select-item label="Item 4" value="4"></ix-select-item>
    </ix-select>
  `,
})
export default class SelectEditable {
  value = '1';
}
@network-interface-controller network-interface-controller added the triage We discuss this topic in our internal weekly label Nov 26, 2024
@matthiashader matthiashader added type: bug Something isn't working Workflow: Issue created JIRA issue is created and will be analyzed and removed triage We discuss this topic in our internal weekly labels Nov 27, 2024
Copy link
Contributor

github-actions bot commented Nov 27, 2024

🤖 Hello @network-interface-controller

Your issue will be analyzed and is part of our internal workflow.
To get informed about our workflow please checkout the Contributing Guidelines

JIRA: IX-2032

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working Workflow: Issue created JIRA issue is created and will be analyzed
Projects
None yet
Development

No branches or pull requests

2 participants