When a queue item is ‘clicked’, the selected property is not being set. This leads to issues when calling getSelectedItems, unSelectAll, etc. on the queue list.
Notes - in the tagClickAction (function , the nx-queue-item-selected class is being added, but the selected property is not being set.
Steps to reproduce:
- Create page using XML below
- Preview page
- ‘Click’ and item
- in the console, execute the following :
skuid.$C('accountQueue').element.data('object').list.getSelectedItems()
Expected Behavior
Array with 1 item that represents the selected item is returned
Actual Behavior
Empty Array is returned
Sample Page XML
<skuidpage unsavedchangeswarning="yes" personalizationmode="server" showsidebar="true" showheader="true" tabtooverride="Account"> <models>
<model id="Account" limit="100" query="true" createrowifnonefound="false" sobject="Account">
<fields>
<field id="Name"/>
<field id="CreatedDate"/>
</fields>
<conditions/>
<actions/>
</model>
</models>
<components>
<pagetitle model="Account" uniqueid="sk-3Tr7Zi-68">
<maintitle>
<template>{{Model.labelPlural}}</template>
</maintitle>
<subtitle>
<template>Home</template>
</subtitle>
<actions>
<action type="savecancel"/>
</actions>
</pagetitle>
<queue tagrendertype="template" querystring="id={{Id}}" defaultitemparameter="id" clickactiontype="snippet" searchbox="true" tokenizesearch="true" uniqueid="accountQueue" model="Account" actionsnippet="fakeSnippet">
<rendertemplate>{{{Name}}}</rendertemplate>
</queue>
</components>
<resources>
<labels/>
<css/>
<javascript/>
</resources>
<styles>
<styleitem type="background" bgtype="none"/>
</styles>
</skuidpage>