Closed (fixed)
Project:
Lightning
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Nov 2016 at 20:12 UTC
Updated:
22 Jun 2017 at 16:20 UTC
Jump to comment: Most recent
When I have a media field that uses Lightning Media browser, I can only select a single media asset, even though my field is set up to allow for multiple items.
Comments
Comment #2
balsamaThis is far from ideal UX - but you can select more than one image... just not at the same time. If your field is setup to allow more than one value, you should be able to click on the "Select Image(s)" button again (and again) to continue to add images to the field.
This is really just a workaround until we can straighten out the UX with entity browser.
Comment #3
phenaproximaI feel like Entity Browser somehow supports this, at least should support it. I'll look into adding this soon, because it is definitely sorely needed.
Comment #4
rajab natshahI think the Entity Browser Enhanced module could help very much at this time.
Work on the module were inspired by the work on Lightning.
But we advanced the UX behaviours a bit.
It's like having a list of enhancers "Libraries" as plugin then you will be able to select one to change the look an behaver of the selected entity browser view.
Scenarios Coved:
I will try to add patch files with 2 options. to add the module to Lightning .. or Patch Lightning Media feature.
#2815809: [Entity Browser Enhanced] to provide some behaviours and style enhancements to Entity Browsers, specifically for multiselect and image/media browsers.
Comment #5
balsamaFeedback from commit c621ab2713ba1a017845ed64885f11a1eb17a85f on the 8.x-media-browser-multiple branch:
Comment #6
phenaproximaGood catches all. I have addressed them (with tests), except for #3, and it is ready to be reviewed in the 8.x-media-browser-multiple branch.
EDIT:
Travis is, in classic Travis fashion, repeatedly failing a test which is, for me, passing locally every time. It's ready for manual review, but I'll have to see what I can do about getting Travis to pass it.Fixed it.Comment #7
balsamaThis works really, really well. And it's a massive improvement in other ways over what we currently have.
I want to document and discuss three things before merging:
Comment #8
phenaproximaMe neither. It would take a pretty big UX redesign to account for this use case.
I'd be very surprised if this is due to anything Lightning's JavaScript, which is pretty much cosmetic in nature, is doing. I suspect it's a limitation either of Entity Browser (likely) or image fields themselves (less likely). We should get input from @samuel.mortenson or @slashrsm about this.
That's a really good point. I'll see if I can get it to work that way.
Agreed, just not quite sure how to test this.
Comment #10
phenaproximaComment #11
balsamaDiscovered a bug after commit where you cannot select any items on fields with unlimited cardinality. Will commit a fix against this issue shortly.
Comment #13
phenaproximaAll righty then!
Comment #14
phenaproximaComment #15
balsamaI ended up using a color from seven, the highlight color (#ed5), for the border on selected items. I think the blues and greens we had might have actually looked better, but think it's best not to introduce a new color to seven.
Comment #16
danepowell commentedIt seems like the "double click to submit" functionality referenced in #4 was never implemented. Is that correct? That would be a really nice feature to have.
Comment #17
danepowell commentedI implemented double-click to select in #2888535: Double-click to select items in media browser