Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-15922

Number type doesn't accept decimal in the side editor in experience manager

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • saas
    • 16.0.0
    • None
    • None
    • 2
    • Orion
    • Orion.Cycle3.Sprint, Orion.Cycle4.Sprint
    • Undetermined
    • Small (1-2)

    Description

      When you define a component parameter type as Number in the Site development in the Default field you can set a decimal number eg. 5.697796 as used in the Reference Google Maps component

      However, when you drag and use the component in the experience manager the default value shows up fine but you can not edit/save a decimal value. You get an error "Use numbers only".

      And if we see the configured parameter in the console it has hst:valuetype=decimal but the default value is stored as String.

      See attached screenshots 

      Testing

      Option 1

      Import the attached yaml to 

      /hst:hap/hst:configurations/hap/hst:catalog/hap-catalog

      Then do the following steps:

      1. Go to HAP channel
      2. Add the Google Maps component
      3. In the Latitude field enter a decimal number

      Expected result:

      It accepts a decimal number

      Actual result:

      Save button disabled. A message appears Use numbers only

       

      Option 2

      Or you can start the archetype project and add the OpenStreetMap component.

      Attachments

        1. decimal.yaml
          0.3 kB
          Nikola Trajkovski
        2. Screenshot 2023-02-16 at 14.51.28.png
          1.81 MB
          Nikola Trajkovski
        3. Screenshot 2023-02-16 at 14.54.01.png
          1.19 MB
          Nikola Trajkovski
        4. Screenshot 2024-06-20 at 11.42.23.png
          198 kB
          Shikha Mudgal

        Activity

          People

            ntrajkovski Nikola Trajkovski
            ntrajkovski Nikola Trajkovski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: