Skip to content

Add default_checked and default_selected attributes. #371

Merged
hayleigh-dot-dev merged 2 commits intolustre-labs:mainfrom
Mehgugs:main
Nov 1, 2025
Merged

Add default_checked and default_selected attributes. #371
hayleigh-dot-dev merged 2 commits intolustre-labs:mainfrom
Mehgugs:main

Conversation

@Mehgugs
Copy link
Contributor

@Mehgugs Mehgugs commented Aug 19, 2025

Adds two new default value attributes for the defaultChecked and defaultSelected dom interface properties. Included two birdie snapshots to test the html writing machinery.

Admittedly this PR is pretty much rote copying the way default_value was implemented.

Fixes #353

I added the * text=auto to .gitattributes so that line endings are normalized.

Very new to gleam so I'm not sure if you want all those birdie snapshot version bumps included; I can fix that if necessary :)

Adds two new default value attributes for the defaultChecked and
defaultSelected dom interface properties. Included two birdie snapshots
to test the html writing machinery.
@hayleigh-dot-work
Copy link

Ah wicked, thank you! Looks great 💕

@hayleigh-dot-dev
Copy link
Collaborator

Looks like CI is failing probably because it's using a slightly older Gleam version. I'll get that updated later and then merge this :)

@hayleigh-dot-dev hayleigh-dot-dev merged commit 09e75c2 into lustre-labs:main Nov 1, 2025
0 of 2 checks passed
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.

Add a default_checked attribute as a companion to default_value.

3 participants