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

        Working...
        X