Skip to content

Commit

Permalink
fix:拖拽排序修复
Browse files Browse the repository at this point in the history
  • Loading branch information
QwQ-wuwuwu committed Jun 28, 2024
1 parent 49c3dc4 commit 1a36738
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/frontend/src/components/bs-comp/sheets/TaggingSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function TaggingSheet({children}) {

const handleDragEnd = (result) => {
if(!result.destination) return
const newButtons = init
const newButtons = buttons
const [moveItem] = newButtons.splice(result.source.index, 1)
newButtons.splice(result.destination.index, 0, moveItem)
setButtons(newButtons)
Expand Down Expand Up @@ -46,7 +46,7 @@ export default function TaggingSheet({children}) {
)}
</Draggable>
))}
{provided.placeholder}
{/* {provided.placeholder} */}
</div>
)}
</Droppable>
Expand Down

0 comments on commit 1a36738

Please sign in to comment.