0

Specifying a readonly flag in a dualListBox component results in this error

Uncaught Assertion Failed!: "readonly" must either be a public property of lightningDualListbox or a global HTML attribute : false

<lightning:dualListbox aura:id="mySelector"
                       name="select things"
                       label="Select"
                       sourceLabel="Options"
                       selectedLabel="Selected"
                       options="{! v.availableItems }"
                       value="{! v.selectedItems }"
                       onchange="{! c.handleItemChange }"
                       readonly="true"/>

How do I show the dualListBox in readonly mode?

2

readonly is only available in Summer '18 (v43.0). Note that it doesn't seem to work anyways, so you'll probably want to use disabled for right now.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.