Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Text is staying all the time in the top #283

Open
vadimt2 opened this issue Aug 9, 2023 · 0 comments
Open

[bug] Text is staying all the time in the top #283

vadimt2 opened this issue Aug 9, 2023 · 0 comments

Comments

@vadimt2
Copy link

vadimt2 commented Aug 9, 2023

  • When i use formik, it's working ok

Please use this code below,
Put value in the top inpiut and drag it down.

  const [items, setItems] = useState([
    { id: '1', name: 'Item 1' },
    { id: '2', name: 'Item 2' },
    { id: '3', name: 'Item 3' }
  ])
<ReactSortable list={items} setList={setItems}>
      {items.map((item, index) => (
        <div key={index}>
          <span className="my-handle">::</span>
          <input type="text" placeholder={item.name} />
        </div>
      ))}
    </ReactSortable>```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant