Skip to content

Commit

Permalink
Disable checkboxes by default
Browse files Browse the repository at this point in the history
  • Loading branch information
thetarnav committed Mar 8, 2024
1 parent 4ab7604 commit df3d1a1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion index.css
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ input[type="checkbox"] {
border-radius: 4px;
width: 0.8rem;
height: 0.8rem;
cursor: pointer;
}
input[type="checkbox"]::after,
input[type="checkbox"]::before {
Expand Down
1 change: 1 addition & 0 deletions smd.js
Original file line number Diff line number Diff line change
Expand Up @@ -1074,6 +1074,7 @@ export function default_add_token(data, type) {
case CHECKBOX:
const checkbox = document.createElement("input")
checkbox.type = "checkbox"
checkbox.disabled = true
mount = slot = checkbox
break
case CODE_BLOCK:
Expand Down

0 comments on commit df3d1a1

Please sign in to comment.