Skip to content

bug: keys Home, End, ArrowUp, ArrayDown not working in (ion-)textarea in popover #24633

@appy-one

Description

@appy-one

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x

Current Behavior

Keys Home, End, ArrowUp, ArrayDown are not working when editing text in a <textarea> or <ion-textarea> when presented in an popover because ev.preventDefault() is called in overlays.ts:376 for 'ArrowDown', and other keys below.

Expected Behavior

Cursor should be able to move in a textarea when pressing those keys.

Steps to Reproduce

  1. create component with a <textarea> or <ion-textarea>
  2. open the component in a popover
  3. focus the textarea input and enter some text with multiple lines
  4. try moving the cursor with up, down, home and end keys

Code Reproduction URL

No response

Ionic Info

Ionic:

Ionic CLI : 5.4.16 (C:\Users\4ewou\AppData\Roaming\nvm\v14.15.4\node_modules\ionic)
Ionic Framework : @ionic/angular 6.0.1
@angular-devkit/build-angular : 13.0.4
@angular-devkit/schematics : 13.0.4
@angular/cli : 13.0.4
@ionic/angular-toolkit : 5.0.3

Utility:

cordova-res : not installed
native-run : not installed

System:

NodeJS : v14.15.4 (C:\Program Files\nodejs\node.exe)
npm : 6.14.10
OS : Windows 10

Additional Information

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions