eclipsesource / eclipsesource/tabris-js

preventDefault on beforeTextChange event can block all input

Open
#2,169 0 comments 0 reactions 0 assignees View on GitHub
android bug
Dominant language
JavaScript
Stars
1.4k
Forks
171
PR merge metrics
No merged PRs in 30d

Description

### Problem description

On Android when calling preventDefault on the beforeTextChange event object causes not just the current key press but all following to not be printed.

### Expected behavior

Block only the input for which preventDefault was called.

### Environment

- Tabris.js version: 3.7.1
- Device: OnePlus 7 Pro
- OS: Android 10

### Code snippet

https://github.com/eclipsesource/tabris-js/blob/master/snippets/textinput-validation.ts

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.