Skip to content

Select field doesn't work with id = 0 #234

Closed
@Aareksio

Description

@Aareksio

You can't set id: 0 in select type field values.

{
  label: 'WCF Binding',
  type: 'select',
  model: 'WCFBinding',
  values: [
    { id: 0, name: 'NetTcp' },
    { id: 1, name: 'BasicHttp' },
    { id: 2, name: 'WSHttp' }
  ],
  default: 0,
}

The check here fails when item.id = 0 and instead of id property alone, returns the whole object, so we end up with [Object object] in value HTML field...

It was already mentioned in #186, without reaction, so perhaps it's intended. If that's the case, please provide information on how to achieve the expected result (value = 0).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions