Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[DomCrawler] MakeChoiceFormField::isDisabled returntrue for unchecked disabled checkboxes#59399

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nicolas-grekas merged 1 commit intosymfony:6.4fromMatTheCat:ticket_8348
Jan 22, 2025

Conversation

MatTheCat
Copy link
Contributor

@MatTheCatMatTheCat commentedJan 7, 2025
edited
Loading

QA
Branch?6.4
Bug fix?yes
New feature?no
Deprecations?no
IssuesFix#8348
LicenseMIT

ChoiceFormField::isDisabled’s PHPDoc reads

Check if the current selected option is disabled.

But a checkbox really embeds two options: either you check it, or not; which means it always has a selected option.
Then, if a checkbox is disabled, these two options are too.
So,ChoiceFormField::isDisabled should returntrue for disabled checkboxes, checked or not.

This also matches what you intuitively would expect from this method.

@carsonbotcarsonbot added this to the6.4 milestoneJan 7, 2025
@MatTheCatMatTheCat changed the title[DomCrawler] MakeChoiceFormField::isDisabled returntrue for disabled checkboxes[DomCrawler] MakeChoiceFormField::isDisabled returntrue for unchecked disabled checkboxesJan 7, 2025
@nicolas-grekas
Copy link
Member

Thank you@MatTheCat.

@nicolas-grekasnicolas-grekas merged commitcb5fdaf intosymfony:6.4Jan 22, 2025
11 checks passed
@MatTheCatMatTheCat deleted the ticket_8348 branchJanuary 22, 2025 15:06
This was referencedJan 29, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

@xabbuhxabbuhAwaiting requested review from xabbuh

Assignees
No one assigned
Projects
None yet
Milestone
6.4
Development

Successfully merging this pull request may close these issues.

3 participants
@MatTheCat@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp