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

"Form Text-Number Field Allowing Letters, Inconsistent Behavior Across Browsers" #2653

Open
samyuktha0405 opened this issue Jan 5, 2024 · 0 comments

Comments

@samyuktha0405
Copy link

Bug Report

Current Behavior
The Form Text-Number field allows the input of letters along with numbers, exhibiting different behavior in various browsers. In Chrome, only the letter "E" can be entered, while in Safari and Firefox, any letter is accepted. This contradicts the expected behavior of allowing only numbers in the Form Text-Number field.

Expected behavior/code
The Form Text-Number field should only allow the input of numbers and should exhibit consistent behavior across different browsers.

Steps to Reproduce

  1. Create a page and add the core form container to the page.

  2. Add the Form Text component inside the parsys of the Form container.

  3. Select "Number" from the Constraint dropdown field.
    image

  4. Configure the fields as shown below and click on "Done."

  5. In Chrome, go to the published mode of the page and type a number including 'e' (e.g., 123e3). It allows the addition of 'e' along with numbers.

image

  1. Open the same page in Mozilla Firefox and Safari browsers. Start typing some letters in the text field; it allows the addition of both letters and numbers.
    image

Environment

  • AEM version and patch level: Adobe Experience Manager 2023.12.14538.20231205T165334Z-231100
  • Core Components version: 2.23.4
  • JRE version: Java(TM) SE Runtime Environment 18.9 (build 11.0.19+9-LTS-224)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant