aem-core-wcm-components icon indicating copy to clipboard operation
aem-core-wcm-components copied to clipboard

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

Open samyuktha0405 opened this issue 1 year ago • 0 comments

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)

samyuktha0405 avatar Jan 05 '24 07:01 samyuktha0405