Announcement

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

    ComboBoxItem not clearing unknown value on blur

    I'm getting very different behavior out of a ComboBoxItem when it is in a ListGrid vs when it's in a DynamicForm.
    In a DynamicForm if you were to type in a value that does NOT have a match in the valueMap and then leave the field, it would return to the previous value.
    In an editable ListGrid if you were to type in a value that does NOT have a match in the valueMap and then leave the field, it would keep what ever characters you typed and try to save the edits with that string.
    To Start, here is my ComboBoxItem field { name: "State", type: "ComboBoxItem", canEdit: true, valueMap: { WI: "Wisconsin", IL: "Illinois", MN: "Minnesota", ...

    #2
    Hi,

    Is the text blue in one case and black in the other? Then addUnknownValues is different for the ComboBoxItem instances.
    Try adding a ListGridField to the ListGrid with editorProperties set to a addUnknownValues(false) ComboBoxItem.

    Best regards
    Blama

    Comment


      #3
      Blama that was it, simply moving `addUnknownValues: false` to the field's editorProperties solved it.

      Thanks a lot

      Comment

      Working...
      X