Skip to content

bug: clearOnEdit should not clear input when tabbing to next input #27746

@jmedellinc

Description

@jmedellinc

Prerequisites

Ionic Framework Version

v7.x

Current Behavior

The clearOnEdit option of ion-input is supposed to clear the content of the ion-input when a new character is entered

If filling a form with the keyboard, if you tab into an input which has contents and then you tab into another input, the input clears, which i think is not what's expected?

Expected Behavior

The input should not be erased if the input "entered" is the tab key..

Steps to Reproduce

  1. Go to https://ionicframework.com/docs/api/input#clear-options
  2. Activate the text input which has clearOnEdit activated
  3. tab change into the following input
  4. Shift-Tab into the previous input, which results in the input with clearOnEdit option activated and it has already text
  5. Tab again to change into the next input
  6. ... the input clears..

Code Reproduction URL

https://ionicframework.com/docs/api/input#clear-options

Ionic Info

Latest.. Test based on ionic Docs

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions