Skip to content

ion-input clearOnEdit not working #17055

Closed

Description

@RobotBroer

Bug Report

Ionic version:

[x] 4.x

Current behavior:

ion-item clearOnEdit property has no effect.

Expected behavior:

If property clearOnEdit is set then on selecting the input the current value of the input should be replaced by the new value being inserted.

Steps to reproduce:

  1. Set Property clearOnEdit on ion-input
  2. Set a value on the input
  3. Set a new value on the input

Related code:

insert short code snippets here

Other information:

Ionic info:

Ionic:

   ionic (Ionic CLI)             : 4.6.0
   Ionic Framework               : @ionic/angular 4.0.0-rc.0
   @angular-devkit/build-angular : 0.11.4
   @angular-devkit/schematics    : 7.1.4
   @angular/cli                  : 7.1.4
   @ionic/angular-toolkit        : 1.2.2

Cordova:

   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms     : none
   Cordova Plugins       : no whitelisted plugins (0 plugins total)

System:

   Android SDK Tools : 26.1.1 (/Users/christo/Library/Android/sdk)
   ios-deploy        : 1.9.2
   NodeJS            : v11.6.0 (/Users/christo/.nvm/versions/node/v9.10.1/lib/node_modules/node/bin/node)
   npm               : 6.5.0
   OS                : macOS Mojave
   Xcode             : Xcode 10.1 Build version 10B61

Activity

  1. paulstelzer commented on Jan 11, 2019

    @paulstelzer
    Contributor

    You are right (can be easily check on the docs simulator, but only for clearInput -> https://beta.ionicframework.com/docs/api/input/ )

    UPDATE:

    clearInput: It's working in Chrome and Edge, but not in firefox (fixed with #17043)

    clearOnEdit: Not working in Chrome (other browsers not checked)

  2. added
    package: core
    type: bug
    and removed on Jan 11, 2019
  3. added 2 commits that reference this issue on Jan 11, 2019
    6adfd55
    c548462
  4. added 4 commits that reference this issue on May 8, 2019
    5eb942f
    71d5400
    2c24df2
    9c65d5d
  5. added a commit that references this issue on May 22, 2019
    3da7254
  6. ionitron-bot commented on Jun 6, 2019

    @ionitron-bot

    Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

  7. locked and limited conversation to collaborators on Jun 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    package: coretype: bug

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions