3

I'm using the latest Appiphony Strike components to built a multiselect picklist inside a modal.

<aura:component >
   <c:strike_modal title="Strike Modal" showModal="true">
           <c:strike_multiSelectPicklist >
               <c:strike_option label="Option" />
               <c:strike_option label="Option" />
               <c:strike_option label="Option" />
               <c:strike_option label="Option" />
               <c:strike_option label="Option" />
               <c:strike_option label="Option" />
           </c:strike_multiSelectPicklist>
       <br/>
       <br/>
       <br/>
       <br/>
       <br/>
       <br/>
       <br/>
    </c:strike_modal>
</aura:component>

As shown in the screencast I am unable to click the scrollbar in the select options. It always closes the select box.

enter image description here

This symptom doesn't show up when I don't have the modal around.

The Strike code is just using the Lightning design system, so my assumption is that this is a general problem, why I am putting my question here and here.

  • Any errors when you click on it? – glls Feb 28 '18 at 22:54
  • Yeah, I don't think we can help you with this. It should not be behaving that way, near as I can tell. I'm guessing there's some odd event happening that's unexpected. But maybe someone will have an answer after all. – sfdcfox Feb 28 '18 at 23:04
  • I identified the closing here: github.com/appiphony/Strike-Components/blob/master/aura/…. A workaround would be to find out if the scrollbar was clicked. Hacky! But why doesn't that fail without the modal. – Robert Sösemann Feb 28 '18 at 23:24
  • 1
    can u confirm if you have lockerservice en abled? – Aequitas Mar 1 '18 at 0:43
  • Yes I have locker service on – Robert Sösemann Mar 1 '18 at 5:31
-1

As per the screenshot, it looks like you need a picklist component. Why don't you use lightning:combobox component? There is no custom component required. You can check more about this in the link below:

https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/aura_compref_lightning_combobox.htm

Sample code is also provided in the link below

  • Downvoted this as this is neighter correct (I need a customizable multi select list and not an inflexible base component with single select) and telling people to just not use something is not an answer at all. Would be good comment but not an answer. – Robert Sösemann Mar 1 '18 at 10:01

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.