Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

how to use onEnd event ?

Open
#719 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
20/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript, react
Domain
frontend

Research direction

Start at the ReactSortable entry point and its onEnd/setList API, then reproduce the provided grouped-list example with two lists. Done means the grouped drag updates the shared columns state once through the supported event flow; no test or source file is named in the issue.

Written by the indexing model from the issue text.

Description

setList not well work with group list,
This is a very common requirement, but react-dragablesjs doesn't work, I think it needs the onEnd event, how do I do it? Also, the main reason might be that he has two setList's to execute, when in reality, only one is needed, like in other sort libraries, and the logic is only done in the onEnd event

  const leftColumns = useMemo(() => {
    return []
  }, [columnsState])

  const centerColumns = useMemo(() => {
    return []
  }, [columnsState])

  const setLeftColumns = (list) => {

    setColumnsState(newColumnsState)
  }

  const setCenterColumns = (list) => {
  
    setColumnsState(newColumnsState)
  }


<ReactSortable
            animation={150}
            group="shared-group-name"
            list={leftColumns}
            setList={setLeftColumns}
          ></ReactSortable>
Dominant language
JavaScript
Stars
9.3k
Forks
1k
Avg merge
3d 8h
Merged PRs (30d)
4

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from react-grid-layout/react-draggable

All issues in react-grid-layout/react-draggable

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.