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

Simple Combo cannot submit form via ngSubmit #14198

Open
ricardosaracino opened this issue May 8, 2024 · 0 comments
Open

Simple Combo cannot submit form via ngSubmit #14198

ricardosaracino opened this issue May 8, 2024 · 0 comments
Assignees
Labels
🐛 bug Any issue that describes a bug forms 🆕 status: new

Comments

@ricardosaracino
Copy link

ricardosaracino commented May 8, 2024

Description

I cannot submit a form from a simple combo, if i hit enter in the date input the form will submit.

image

Steps to reproduce

<form (ngSubmit)="submitForm()" [formGroup]="filterFormGroup">

    <igx-simple-combo (selectionChanging)="fundSelectionChanging($event.newValue)"
                      [data]="fundOptions$ | async"
                      [itemsMaxHeight]="255"
                      displayKey="label"
                      formControlName="fundId"
                      type="line"
                      valueKey="id">
      <label igxLabel>
        Fund
      </label>
    </igx-simple-combo>
....

Result

Nothing happend

Expected result

As you can see in my attached image the text in the combo is selected. I would have expected the input cursor to be at the end of the text after selecting an option. At that point i would expect hitting enter would submit the form.

I am migrating all the mutlit select combos we had hacked to single select combos to IgxSimpleCombos. We were able to submit the form from the multi select combo and i would have expected the same behavour in the simple combo.

Attachments

Attach a sample if available, and screenshots, if applicable.

@ricardosaracino ricardosaracino added 🐛 bug Any issue that describes a bug 🆕 status: new labels May 8, 2024
@Lipata Lipata added the forms label May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Any issue that describes a bug forms 🆕 status: new
Projects
None yet
Development

No branches or pull requests

3 participants