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

Looks like patch is trying to remove an element that doesn't exist #584

Closed
mrozbarry opened this issue Feb 10, 2018 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@mrozbarry
Copy link
Contributor

Bug

When adding <li> elements to a <ul>, if I add an empty tag, next update through the system throws an error.

Reproduce it

  1. Clone https://github.com/LearnHyperapp/hyper-list , npm install, npm run start
  2. http://localhost:8080
  3. click the input, hit enter 1x
  4. type something in the input box
    What should happen:
    1 empty item in the list, and some input content
    What happens:
    1 empty item, and this exception

Uncaught TypeError: Failed to execute 'removeChild' on 'Node': parameter 1 is not of type 'Node'.
at done (index.js?ee11:214)
at removeElement (index.js?ee11:220)
at patch (index.js?ee11:305)
at patch (index.js?ee11:276)
at patch (index.js?ee11:268)
at render (index.js?ee11:58)

@jorgebucaran jorgebucaran added the bug Something isn't working label Feb 10, 2018
@jorgebucaran
Copy link
Owner

https://github.com/hyperapp/hyperapp/releases/tag/1.1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants