Hyperapp: Looks like patch is trying to remove an element that doesn't exist

Created on 10 Feb 2018  路  1Comment  路  Source: jorgebucaran/hyperapp

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)

Bug

Most helpful comment

>All comments

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jacobtipp picture jacobtipp  路  3Comments

jamen picture jamen  路  4Comments

joshuahiggins picture joshuahiggins  路  4Comments

zaceno picture zaceno  路  3Comments

guy-kdm picture guy-kdm  路  4Comments