SortableJS/react-sortablejs

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

vadimt2 opened this issue · 0 comments

  • 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>```