Skip to content

Commit

Permalink
Fix web-component boolean attributes (#881)
Browse files Browse the repository at this point in the history
Fix so anything other than explicitly setting the boolean attributes as
false is taken as true
  • Loading branch information
sra405 committed Jan 11, 2024
1 parent f2c2490 commit dff625e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

### Fixed

- Boolean web component attributes (#881)
- Wrap the project bar when sidebar is wide (#869)
- Web component project bar state update delay (#869)
- Left border of the project bar (#869)
Expand Down
2 changes: 1 addition & 1 deletion src/web-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class WebComponent extends HTMLElement {
name,
)
) {
value = newVal === "true";
value = newVal !== "false";
} else if (
["instructions", "sidebar_options", "host_styles"].includes(name)
) {
Expand Down

0 comments on commit dff625e

Please sign in to comment.