Skip to content

bug: input-otp readonly doesn't disable delete #30913

Description

@jongbonga

Prerequisites

Ionic Framework Version

v8.x

Current Behavior

when ion-input-otp has the readonly prop, user can not write but can delete characters

Expected Behavior

input shouldn't allow interaction when readonly

Steps to Reproduce

Click on any block on the input and press backspace key on keyboard

Code Reproduction URL

https://ionicframework.com/docs/api/input-otp#states

Ionic Info

   Ionic CLI                     : 7.2.1 (/Users/jongbonga/.nvm/versions/node/v22.16.0/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 8.7.16
   @angular-devkit/build-angular : 20.3.14
   @angular-devkit/schematics    : 20.3.14
   @angular/cli                  : 20.3.14
   @ionic/angular-toolkit        : 12.3.0

Additional Information

No response

Activity

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

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions