Vue: 2.1.5 breaks app - TypeError: Cannot create property 'isRootInsert' on boolean 'false'

Created on 13 Dec 2016  路  2Comments  路  Source: vuejs/vue

Vue.js version

2.1.5

Reproduction Link

working v2.1.4 - https://jsfiddle.net/7eje1znn/
not working v2.1.5 - https://jsfiddle.net/74zsdfv5/

Steps to reproduce

Just open fiddle with v2.1.5 and check the console.

What is Expected?

Well it should work without throwing exception since I don't see any breaking changes in this new release regarding render function.

What is actually happening?

It seems that Vue suddenly doesn't accept false value in array of children vnodes.. And if we change this line:

labelLeft && label

to labelLeft ? label : null

then everything works correctly. No Error.

regression

Most helpful comment

fix shipped in 2.1.6.

All 2 comments

fix shipped in 2.1.6.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

finico picture finico  路  3Comments

paceband picture paceband  路  3Comments

loki0609 picture loki0609  路  3Comments

seemsindie picture seemsindie  路  3Comments

fergaldoyle picture fergaldoyle  路  3Comments