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

[Formvalidation] Radio buttons do not validate if the first is disabled #372

Merged

Conversation

lubber-de
Copy link
Member

@lubber-de lubber-de commented Jan 8, 2019

Description

  • If the first option of a radio group was disabled the whole validation of that group was skipped
  • Additional fix: is empty always returned false for empty radio button groups
  • I also removed unnecessary sets of fieldValid=true..because it is initially true in all cases anyway

Testcase

Follow the short info in the fiddles (TL;DR: press both buttons 😄 )

Broken

https://jsfiddle.net/u2abzw3r/1/

Fixed

https://jsfiddle.net/u2abzw3r/2/

Closes

Semantic-Org/Semantic-UI#6511

…ion is disabled, support radios in "is empty", removed unnecessary variable setting
@lubber-de lubber-de added type/bug Any issue which is a bug or PR which fixes a bug lang/javascript Anything involving JavaScript state/awaiting-reviews Pull requests which are waiting for reviews tag/sui-issue Taken from an existing Issue/PR of SUI labels Jan 8, 2019
@lubber-de lubber-de added this to the 2.7.x milestone Jan 8, 2019
@lubber-de
Copy link
Member Author

lubber-de commented Jan 9, 2019

The testcase fiddle urls were wrong...sorry for this, i changed them to the correct URLs in the description now.

Copy link
Member

@ColinFrick ColinFrick left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@y0hami y0hami left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang/javascript Anything involving JavaScript tag/sui-issue Taken from an existing Issue/PR of SUI type/bug Any issue which is a bug or PR which fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants