Problem Wrong DOM node is changed/removed
Steps To Reproduce Steps to reproduce the behavior:
- Clone https://github.com/cundd/yew-list-problem
- Run
cargo web start
- Click "Add Song 1 to list!"
- Click "Add Song 2 to list!"
- Click "Add Song 3 to list!"
- Click "Add Song 4 to list!"
- Click "Remove Song 1 from list!"
- Last node is removed from list
Expected behavior "Song 1" is removed from setlist
Environment:
- Yew version
master
- Rust version 1.40.0
- OS: macos
- Browser chrome, safari, firefox
Questionnaire
- I'm interested in fixing this myself but don't know where to start
- I would like to fix and I have a solution
- I don't have time to fix this right now, but maybe later
Possibly related to #604