openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

sap.m.TextArea: maxLength not working

Open grischan opened this issue 7 years ago • 2 comments

OpenUI5 version: 1.60.5

Browser/version (+device/version): Chrome 72, iOS WebView (Cordova), Edge 44

Any other tested browsers/devices(OK/FAIL):

URL (minimal example if possible): https://jsbin.com/kiyobagado/1/edit?html,output

Steps to reproduce the problem:

  1. Open the jsBin-URL. There is a simple TextArea with a maxLength of 40 characters.
  2. Enter Text, you can enter more then 40 characters.

What is the expected result? The input should stop after 40 chars.

What happens instead? You can enter more then the maxLength value.

grischan avatar Feb 27 '19 09:02 grischan

There is a typo:

maxLenght="40"

should be

maxLength="40"

boghyon avatar Feb 27 '19 10:02 boghyon

OMG, you are right. Sry.

grischan avatar Feb 27 '19 10:02 grischan