Value declared with a {type: String} but no default value behave like they have a default value
Author: IntrepiddCreated May 30, 2024Updated Jul 30, 2025
Consider the following values :
static values = {
foo: {type: String},
bar: String
}If both values are un-set, the following will happen
this.hasFooValue // true
this.hasBarValue // falseLooks like it comes from here :
This is beyond my knowledge but it looks like there is a mixup about what is passed to parseValueTypeDefault
Source: hotwired/stimulus