Skip to content

Ion-select activated on enter in input field #12202

@peterssonanton

Description

@peterssonanton

Ionic version: 3.x

I'm submitting a ... bug report

Current behavior:

An ion-select element is activated when hitting the enter key while in an ion-input field on the same page. It seems to be the same issue as this that was fixed but has appeared again:
#5596

Expected behavior:

It should not open.

Steps to reproduce:

Have an ion-select an ion-input element on the same page.
Enter something in the input field.
When hitting enter (or Go/Submit on devices), the select window is activated as if you clicked the element.
Related code:

<ion-item >
  <ion-label>Select one:</ion-label>
  <ion-select>
    <ion-option>Option 1</ion-option>
    <ion-option>Option 2</ion-option>
    <ion-option>Option 3</ion-option>
    <ion-option>Option 4</ion-option>
  </ion-select>
</ion-item>
<ion-item>
  <ion-label>Input:</ion-label>
    <ion-input type="text"></ion-input>
</ion-item>

Other information:

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

global packages:

    @ionic/cli-utils : 1.4.0
    Cordova CLI      : 6.5.0
    Ionic CLI        : 3.4.0

local packages:

    @ionic/app-scripts              : 1.3.7
    @ionic/cli-plugin-cordova       : 1.4.0
    @ionic/cli-plugin-ionic-angular : 1.3.1
    Cordova Platforms               : android 6.1.2
    Ionic Framework                 : ionic-angular 3.5.0

System:

    Node       : v6.11.0
    OS         : Windows 10
    Xcode      : not installed
    ios-deploy : not installed
    ios-sim    : not installed
    npm        : 4.1.2


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions