mirror of
https://github.com/Unleash/unleash.git
synced 2025-03-23 00:16:25 +01:00
fix: only drag handle is draggable, allow you to select text in the header (#9536)
Previously, the entire card was draggable, which meant that you couldn't select text inside the card or inside the milestone title when editing. This makes it so that only the drag handle is draggable.
This commit is contained in:
parent
3a59886206
commit
2b634438a1
@ -189,7 +189,7 @@ export const MilestoneCard = ({
|
||||
|
||||
const dragHandle = (
|
||||
<DragButton type='button'>
|
||||
<DraggableContent>
|
||||
<DraggableContent ref={dragItemRef}>
|
||||
<DragIndicator aria-hidden />
|
||||
<ScreenReaderOnly>Drag to reorder</ScreenReaderOnly>
|
||||
</DraggableContent>
|
||||
@ -363,7 +363,7 @@ export const MilestoneCard = ({
|
||||
if (!milestone.strategies || milestone.strategies.length === 0) {
|
||||
return (
|
||||
<>
|
||||
<DraggableCardContainer ref={dragItemRef}>
|
||||
<DraggableCardContainer>
|
||||
{dragHandle}
|
||||
<StyledMilestoneCard
|
||||
hasError={
|
||||
|
Loading…
Reference in New Issue
Block a user