Skip to content

ChoiceFormField of type "select" could be "disabled" #17542

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

Closed
wants to merge 3 commits into from

Conversation

bouland
Copy link
Contributor

@bouland bouland commented Jan 26, 2016

Hi,

New PR to add tests from the closed PR #15952

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT
Doc PR

Hi,

A select could be "globaly" disabled not only one of its options.
http://www.w3schools.com/tags/att_select_disabled.asp
Check if field attribute disabled is working
@@ -59,6 +59,10 @@ public function hasValue()
*/
public function isDisabled()
{
if (parent::isDisabled() && 'radio' !== $this->type) {
Copy link
Member

Choose a reason for hiding this comment

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

should be 'select' === $this->type (the test won't work for radio inputs)

@xabbuh
Copy link
Member

xabbuh commented Jan 26, 2016

Status: Needs work

@fabpot fabpot changed the title Moved domcrawler 20 ChoiceFormField of type "select" could be "disabled" Jan 27, 2016
@xabbuh
Copy link
Member

xabbuh commented Feb 17, 2016

👍 LGTM

ping @jakzal

Status: Reviewed

@fabpot
Copy link
Member

fabpot commented Feb 26, 2016

Thank you @bouland.

fabpot added a commit that referenced this pull request Feb 26, 2016
…and)

This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #17542).

Discussion
----------

ChoiceFormField of type "select" could be "disabled"

Hi,

New PR to add tests from the closed PR #15952

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

Commits
-------

576c4b9 ChoiceFormField of type "select" could be "disabled"
@fabpot fabpot closed this Feb 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants