question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Helper item has no unique identifier

See original GitHub issue

Is 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:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
joelworshamcommented, Mar 2, 2017

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!

0reactions
claudericcommented, Mar 1, 2017

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 use data-item-key if you wanted).

Check out this fiddle for details https://jsfiddle.net/xokw3hoq/1/

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found