Announcement

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

    implicitSaveOnBlur fires too early in MultiComboBoxItem ?

    SmartClient Version: v13.1p_2025-06-06/AllModules Development Only (built 2025-06-06)

    Hi, I think I’ve found an issue with the MultiComboBoxItem and implicitSaveOnBlur.

    Basically, when I select a value from the pickList, the update is triggered before the selected value is actually incorporated into the formItem’s values, so the new value isn’t saved and disappears from the UI once the response comes back.

    Sorry if the test case declares multiple: true on a field that’s not defined that way in the DataSource - I still think it’s useful to illustrate the problem:

    Code:
    isc.DynamicForm.create({
        ID: "selectedSupplyItems",
        dataSource:"supplyItem",
        width: "100%",
        numCols: 1,
        implicitSave: true,
        implicitSaveOnBlur: true,
        items: [
        {name:"SKU"},
        {
            name: "itemName", multiple:true,
            title: "Items",
            editorType: "MultiComboBoxItem",
            optionDataSource: "supplyItem",
            displayField: "itemName",
            valueField: "itemName"
        }]
    }).fetchData({itemID:2})
    In fact, if you select a value from the MultiComboBox, you’ll see it doesn’t get sent in the update.

    #2
    Hi, may I ask if you see the problem?

    Comment


      #3
      Sorry for the (very long) delay on this one! We're taking a look.

      Is this cross-browser consistent for you? focus/blur event timing is one of those areas where browsers differ a lot (even the OS may affect timing!).

      Comment


        #4
        Hi,
        the issue occurs on macOS 14.6.1 and 15.5 with Safari, Firefox, and Chrome.
        It does not occur on Safari iOS (both physical devices and Xcode simulators).
        It does not occur on Chrome Android.
        I haven't tested it on Windows yet.

        Actually, I realized the issue only happens when using the mouse to select a value - it doesn't happen when using the keyboard.
        Also, it only occurs if there is at least one item already selected: if no item is selected initially in the MultiComboBox, I can add the first one without any problem.

        There is also a similar issue with removal. When only one item is selected, I can remove it by clicking the button without any issue. But when two or more items are selected, I can’t remove them.

        Comment


          #5
          Hi, just checking in - any update on this issue?

          Comment


            #6
            hi Claudio - apologies for the on-going delay with this one - it's now been assigned and we'll get back to you this week.

            Comment


              #7
              SmartClient Version: v13.1p_2025-08-21/Enterprise Deployment (built 2025-08-21)

              Hello, are there any updates regarding this issue? It still occurs in the latest build.

              Comment


                #8
                hi Claudio - apologies for the delay on this one.

                We've made a change in 13.1+ that will prevent blur() caused by switching between the item and its picker from counting towards an implicitSave.

                Now, when you pick an item from the pickList, the implicitSave will only happen after the implicitSaveDelay - if you pick an item and then immediately click in a different formItem, blur() will fire and the implicitSave will happen immediately.

                Please retest with tomorrow's build, dated August 26, or a later one.
                Last edited by Isomorphic; 25 Aug 2025, 19:15.

                Comment


                  #9
                  SmartClient Version: v13.1p_2025-08-26/Enterprise Development Only (built 2025-08-26)

                  I can confirm that it's fixed, thank you very much!

                  Comment

                  Working...
                  X