Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Express BookInstance update - better option select markup #29892

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

hamishwillee
Copy link
Collaborator

This improves the pug form for the BookInstance update template so that the selected book has <option selected> rather than <option selected="selected">. Note that both are valid, and both work. It's just that the changed version is more familiar and easier to read.

note that setting the value to false is somewhat arbitrary - any value other than selected or the null string is taken as false.

Corresponding worked example update: mdn/express-locallibrary-tutorial#238

Fixes #29859

@hamishwillee hamishwillee requested a review from a team as a code owner October 30, 2023 00:17
@hamishwillee hamishwillee requested review from teoli2003 and removed request for a team October 30, 2023 00:17
@github-actions github-actions bot added the Content:Learn:Express Learning area Express docs label Oct 30, 2023
@github-actions
Copy link
Contributor

Copy link
Contributor

@teoli2003 teoli2003 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:+1

@teoli2003 teoli2003 merged commit 9ca20de into mdn:main Nov 15, 2023
@hamishwillee hamishwillee deleted the express_bookinstance_option branch November 16, 2023 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:Learn:Express Learning area Express docs
Projects
None yet
2 participants