[Accordion] can't access DOM node #11848
Labels
component: accordion
This is the name of the generic UI component, not the React module!
external dependency
Blocked by external dependency, we can’t do anything about it
support: question
Community support but can be turned into an improvement
Context
I have custom component that creates a list of
<ExpansionPanel>
s which renders markup like this:I'm trying to use the pattern described in this issue to make these
<li>
s sortable.But I think the
draggableRef.hasAttribute is not a function
Type error in my minimal reproduction is a result ofSo the dragHandle (which is meant to be the entire sortable item) is being passed the instance rather than the
<li>
itself, and it bugs out. I tried using<RootRef>
(btw this FAQ should probably point to that helper now that it exists) but I think I may be Doing It Wrong™. Am I? Is what I'm trying to do possible, or do I need a wrapper? I tried avoiding the wrapper because that conflicted with the built-in pseudoselector margins.Your Environment
The text was updated successfully, but these errors were encountered: