react-sortablejs icon indicating copy to clipboard operation
react-sortablejs copied to clipboard

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

Open vadimt2 opened this issue 2 years ago • 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>```

vadimt2 avatar Aug 09 '23 20:08 vadimt2