SAP / openui5

OpenUI5 lets you build enterprise-ready web applications, responsive to all devices, running on almost any browser of your choice.
http://openui5.org
Apache License 2.0
2.95k stars 1.24k forks source link

Input with sap.ui.model.type.Float type accepting all input type #4003

Closed jiaweichong closed 6 months ago

jiaweichong commented 6 months ago

OpenUI5 version: 1.98

Browser/version (+device/version): Cordova app running on iOS, Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148

Any other tested browsers/devices(OK/FAIL): Working on desktop, failed on iOS

URL (minimal example if possible): https://sapui5.hana.ondemand.com/sdk/#/entity/sap.ui.model.type.Float

User/password (if required and possible - do not post any confidential information here):

Steps to reproduce the problem:

  1. Enter any value on Input component which has Float type

Second example -

  1. Go to https://sapui5.hana.ondemand.com/sdk/#/entity/sap.m.Input/sample/sap.m.sample.InputTypes with iOS
  2. Enter any value on the highlighted field image
  3. All value type is entered to the Input
  4. Repeat step 1 with desktop
  5. Only numeric value is entered to the Input

What is the expected result? Only numeric value can be entered

What happens instead? All text can be entered on a Input with Float type

Any other information? (attach screenshot if possible)

ndeshev commented 6 months ago

Hello @jiaweichong,

Thank you for reporting the issue.

Unfortunately, this behaviour is browser & OS specific, we checked it with native input HTML element and it is the same. We rely on the native behaviour and don't have special handling for it.

Regards, Nikolay

jiaweichong commented 6 months ago

Hi @ndeshev,

Here is the link - https://sapui5.hana.ondemand.com/#/entity/sap.m.Input/sample/sap.m.sample.InputTypes

If you try to enter something in the Number field on desktop, you will notice that the field only accept number.

While if you are using a mobile device, any value can be entered image

image

This behavior is consistent on any mobile device, was tested on multiple tablets and mobile phone and they show the same output.

Can you please reopen this ticket again?

Thanks, Jia Wei

ndeshev commented 6 months ago

Hello,

As I said, it is native HTML input behaviour specific for different browsers and operating systems and we rely on it. On Chrome/Win11 no letters can be typed in, while in FF and Safari is the opposite.

On my Android phone also there is no issue, while on iOS devices there is.