Vue: setting property of object in data to false becomes undefined in Firefox 67

Created on 5 Jun 2019  路  8Comments  路  Source: vuejs/vue

Version

2.6.10

Reproduction link

https://jsfiddle.net/waspinator/xqvfrtwL/2/

Steps to reproduce

assign false to a property of a data object in Firefox 67.

What is expected?

the property should be false

What is actually happening?

the property becomes undefined


it works as expected on Safari 12 and Chrome 74

Most helpful comment

Hello, Firefox Console owner here. This is indeed a Firefox Console issue when evaluating a getter that returns false, "" or 0.
I'm working on a fix and will keep you updated. Thanks a lot for the report.

All 8 comments

Tested on Firefox 67 and Nightly and the property is set to false

Hmm, that's weird. I tried on a half dozen computers with macOS, ubuntu, and Windows with the same result. Did you try using the linked jsfiddle or some other code?

Screen Shot 2019-06-05 at 07 54 28

Screen Shot 2019-06-05 at 08 17 33

lol what???
How is this closed? I encountered the same issue, whenever I set data fields to something that casts to false, it becomes undefined.

@posva care to explain that?
image

It looks like to be a problem of Firefox's devtools and unrelated to Vue. https://jsfiddle.net/09jzhm6o/

Hello, Firefox Console owner here. This is indeed a Firefox Console issue when evaluating a getter that returns false, "" or 0.
I'm working on a fix and will keep you updated. Thanks a lot for the report.

Update: The bug is now fixed in Firefox 69 (Beta). Should be in release at the beginning of September

Was this page helpful?
0 / 5 - 0 ratings

Related issues

6pm picture 6pm  路  3Comments

robertleeplummerjr picture robertleeplummerjr  路  3Comments

wufeng87 picture wufeng87  路  3Comments

loki0609 picture loki0609  路  3Comments

hiendv picture hiendv  路  3Comments