SAP / ui5-webcomponents

UI5 Web Components - the enterprise-flavored sugar on top of native APIs! Build SAP Fiori user interfaces with the technology of your choice.
https://sap.github.io/ui5-webcomponents/
Apache License 2.0
1.5k stars 260 forks source link

[ui5-input]: If Input type="Number" then typing . (dot) causes value to disappear #8023

Closed martinkma closed 9 months ago

martinkma commented 9 months ago

Bug Description

If I type . (dot), that is not supposed to be a decimal separator, then value disappers. Tested on: https://sap.github.io/ui5-webcomponents/playground/?path=/story/main-input--basic&args=value:Input;type:Number

Affected Component

ui5-input

Expected Behaviour

Value does not disappear, should work same, like if I type other special characters e.g. !,",$, ...

Isolated Example

https://sap.github.io/ui5-webcomponents/playground/?path=/story/main-input--basic&args=value:Input;type:Number

Steps to Reproduce

  1. https://sap.github.io/ui5-webcomponents/playground/?path=/story/main-input--basic
  2. change type of control to number
  3. type 123. ...

Log Output, Stack Trace or Screenshots

No response

Priority

Low

UI5 Web Components Version

v1.18.0

Browser

Chrome, Edge

Operating System

No response

Additional Context

No response

Organization

No response

Declaration

petyabegovska commented 9 months ago

Hello @SAP/ui5-webcomponents-topic-rl,

The issue is reproducible in the latest storybook also: https://sap.github.io/ui5-webcomponents/nightly/playground/?path=/docs/main-input--docs using the described steps of the reporter.

Best regards, Petya

elenastoyanovaa commented 9 months ago

Hello,

The issue is known to us as it is was previously reported here: https://github.com/SAP/ui5-webcomponents/issues/5983 As described there it will be handled as part of the linked feature request https://github.com/SAP/ui5-webcomponents/issues/4353 as it needs focus and complex development from our side.

Thank you for reporting you can track the process of the feature request.

Kind Regards, Elena