Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[@ui5/webcomponents/Inputt]: error thrown when using number type input #9921

Open
1 task done
malonmiming opened this issue Sep 24, 2024 · 3 comments
Open
1 task done
Labels
author action bug This issue is a bug in the code

Comments

@malonmiming
Copy link

Bug Description

[Issue 1]
When using focus input in number-type Input, an error is thrown:

TypeError: Cannot read properties of undefined (reading 'inputType') at Input._handleInput (Input.js:581:25) at z.handleEvent (lit-html.js:6:7169)

[Issue 2]
The English letter "e" can be entered in the input type number.

Affected Component

No response

Expected Behaviour

No response

Isolated Example

No response

Steps to Reproduce

  1. focus input
  2. see error in console
    ...
    ``

Log Output, Stack Trace or Screenshots

TypeError: Cannot read properties of undefined (reading 'inputType')
at Input._handleInput (Input.js:581:25)
at z.handleEvent (lit-html.js:6:7169)

Priority

None

UI5 Web Components Version

"@ui5/webcomponents": "^2.1.1", "@ui5/webcomponents-fiori": "^2.1.1",

Browser

Chrome

Operating System

No response

Additional Context

No response

Organization

No response

Declaration

  • I’m not disclosing any internal or sensitive information.
@malonmiming malonmiming added the bug This issue is a bug in the code label Sep 24, 2024
@nnaydenow
Copy link
Contributor

Hi @malonmiming,

I think that #9616 is fixing similar issue #9588. Could you please try to update application to version 2.2.0 or to check if the issue is reproducible in: https://sap.github.io/ui5-webcomponents/

Regards,
Nayden

@malonmiming
Copy link
Author

HI @nnaydenow,

Thank you for your response!!!
I update application to version 2.2.0. and then the [Issue 1] was resolved, but the [issue 2] was not resolved.

Best Regards,
malonmiming

@nnaydenow
Copy link
Contributor

Hi @malonmiming,

e is special symbol for input of type number with the idea to support numbers that contain epsilon symbol. Same symbol is supported in native input. There is restriction that the input might contain only 1 e symbol.

You can check following example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author action bug This issue is a bug in the code
Projects
None yet
Development

No branches or pull requests

2 participants