[MGNLUI-7064] Combobox: emptySelectionAllowed not working Created: 16/Mar/22  Updated: 26/Aug/22

Status: Open
Project: Magnolia UI
Component/s: None
Affects Version/s: 6.2.17
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Jonathan Ayala Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
causality
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:
Epic Link: AuthorX Support
Team: AuthorX

 Description   

According to the description of property emptySelectionAllowed, when false no empty value should be shown. This is not working correctly.

Steps to reproduce

  1. Use the following field in any dialog
    field:
            $type: comboBoxField
            emptySelectionAllowed: false
            required: true
            datasource:
              $type: jcrDatasource
              workspace: category
              describeByProperty: name
              sortBy:
                name: ascending 
    
  2. Open the dialog

Expected results

The combobox shows the first item of the list

Actual results

The combobox shows an empty value

Development notes

It also happens with option optionListDatasource



 Comments   
Comment by Roman Kovařík [ 16/Mar/22 ]

For the record, this seems to control only the presence of the empty item but doesn’t control any preselection according to vaadin docu.
 

Generated at Mon Feb 12 09:42:47 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.