Helper item has no unique identifier
See original GitHub issueIs there any way to get a unique identifier on the helper? Currently, my list items have unique id
’s and some are styled differently because of this. When dragging, the helper item does not inherit the id
(makes sense, given that would be 2 idential id
’s on the page), but it doesn’t have ANY unique identifier.
Is there any way something can be passed onto the helper for styling purposes? Maybe a custom defined id
or data-*
or something?
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
html - How to locate element in selenium which has no unique ...
I faced following question in interview: How to identify a web element that has no unique identifier and even it has no div...
Read more >About unique product identifiers - Google Merchant Center Help
Common unique product identifiers include Global Trade Item Numbers (GTINs), Manufacturer Part Numbers (MPNs), and brand names. Not all products have unique ......
Read more >This entity does not have a unique ID - Configuration
I'm trying to set 'entity_id' 's for devices which are liisted within my config file. I use them for Wake On LAN. They...
Read more >How to add a Unique Identifier to a SharePoint list or library
With this post, I would like to show you how you can add a unique identifier to a SharePoint list or library for...
Read more >Unique identifier fields in database tables—Help
If your database table does not have a field that can be used as a unique identifier, and you are using a Microsoft...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oh yes I see. Man, I was thinking about this in the wrong way. I was overcomplicating things in my mind.
Thanks for clearing it up!
You have to pass the
data-id
to the component you’re wrapping with SortableElement first (mind you, this could be whatever you want,data-id
is entirely arbitrary, you could usedata-item-key
if you wanted).Check out this fiddle for details https://jsfiddle.net/xokw3hoq/1/