Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    hovers on formItems bug

    SmartClient Version: SNAPSHOT_v13.1d_2024-09-05/AllModules Development Only (built 2024-09-05)

    Firefox and Chrome on MacOS and Windows 11 Pro, plus Safari on MacOS

    Hello, please try this test case in the showcase:

    Code:
    isc.DynamicForm.create({
        ID: "form1",
        width: 620,
        colWidths: [190, "*"],
        fields: [
            {name: "text", title:"Text", type:"text", hint: "A plain text field", wrapHintText: false},
            {name: "colorPicker", title:"Color Picker", type:"color"},
            {name: "stackedSpinner", title: "Stacked Spinner", editorType: "SpinnerItem", writeStackedIcons: true,
             defaultValue: 5, min: 0, max: 10, step: 0.5, wrapTitle: false},
            {name: "unstackedSpinner", title: "Unstacked Spinner", editorType: "SpinnerItem", writeStackedIcons: false,
             defaultValue: 5, min: 0, max: 10, step: 0.5}
        ]
    });
    
    isc.DynamicForm.create({
        ID: "form2",
        width: 620,
        colWidths: [190, "*"],
        isGroup: true,
        groupTitle: "Select / Combo Controls",
        fields : [{
            name: "bugStatus", title: "ComboBox", hint: "<nobr>A simple combobox</nobr>",
            editorType: "ComboBoxItem",
            valueMap : {
                "cat" : "Cat",
                "dog" : "Dog",
                "giraffe" : "Giraffe",
                "goat" : "Goat",
                "marmoset" : "Marmoset",
                "mouse" : "Mouse"
            }
        },
        {
            name: "itemName", title: "Item Name", editorType: "ComboBoxItem",
            optionDataSource: "supplyItem", hint: "<nobr>A databound combobox</nobr>"
        }]
    });
    
    isc.DynamicForm.create({
        ID: "dateForm",
        width: 620,
        fixedColWidths: true,
        colWidths: [190, "*"],
        isGroup: true,
        groupTitle: "Date Controls",showPending:true,
        fields : [
        {
            name: "dateItem2", title: "Date", hint: "<nobr>Direct date input</nobr>",
            editorType: "DateItem",
            useTextField: true
        },
        {
            name: "dateTimeItem", title: "Datetime", hint: "<nobr>Direct datetime input</nobr>",
            editorType: "DateTimeItem", type: "datetime",
            useTextField: true, defaultValue:new Date()
        },
        {
            name: "timeItem", title: "Time",
            editorType: "TimeItem"
        },
        {
            name: "dri", title: "Date Range",
            width: 400,
            editorType: "DateRangeItem",
            allowRelativeDates: true,
            fromDate: "$today",
            toDate: "-1m"
        },
        {
            name: "rdi", title: "Relative Date",
            editorType: "RelativeDateItem"
        }
        ]
    });
    
    isc.VStack.create({
        membersMargin: 10,
        members: [ form1, form2, dateForm]
    });
    if I run it using Safari or Chrome, I see a hover for the Date (empty hover) and Datetime (value + original value) fields.

    in Firefox I see a hover for every formItem.

    None of those hovers are expected as there aren't clipped values and there aren't changed values.

    #2
    sorry, wrong thread https://forums.smartclient.com/forum...644#post273644
    Attached Files
    Last edited by claudiobosticco; 13 Sep 2024, 02:24. Reason: posted in wrong thread

    Comment


      #3
      SmartClient Version: SNAPSHOT_v13.1d_2024-09-13/AllModules Development Only (built 2024-09-13)

      There's also a problem with TextAreaItems which I didn't include in the test case above. When not empty, they show an hover with the text, tested in Safari, Chrome and FF.

      It's evident from the developer console textAreas of the Results tab. Maybe it's also related to this? https://forums.smartclient.com/forum...-touch-devices

      Comment


        #4
        Thanks Claudio - these issues should be addressed in today's builds, dated September 24 or later.

        We do still see that DateTimeItem show's the Old Value in the hover, despite its value being defaulted by the item itself. We'll have a look at that and get back to you when we have more information.

        Comment


          #5
          Thanks, but, for now, no new build since 2024/09/22

          Comment


            #6
            SmartClient Version: SNAPSHOT_v13.1d_2024-09-25/AllModules Development Only (built 2024-09-25)

            Thanks, I see the fixes (minus the old value for the DateTimeItem)

            Comment


              #7
              hi Claudio - we made a change here and you should find that oldValue hovers now work as expected in DateTimeItems (and other parent formItems, like RadioGroupItems) - we also fixed the pending-color on Checkbox and Radio labels.

              Please retest with tomorrow's builds, dated September 27 or later

              Comment


                #8
                SmartClient Version: SNAPSHOT_v13.1d_2024-09-27/AllModules Development Only (built 2024-09-27)

                I can confirm the fixes, thank you very much!

                Comment

                Working...
                X