Skip to content

Conversation

@nexxome
Copy link
Contributor

@nexxome nexxome commented Jul 4, 2022

Q A
Bug fix? yes
New feature? no
Tickets None
License MIT

It isn't possible to set some boolean options to "false", because they were always overridden by the default value, for example:

showCursor: this.showCursorValue || true

So in this commit the stimulus Values API is used for default values https://stimulus.hotwired.dev/reference/values#default-values

@weaverryan
Copy link
Member

Thank you David! We likely need more of this in other components too - the "defaults" api for values was new in 3.0, and many of the components predate that and so haven't taken advantage of this yet :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants