-
-
Notifications
You must be signed in to change notification settings - Fork 331
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
[Form validation] Check if validation[field] !== undefined
before accessing any of it's properties
#546
Conversation
[form remove rule] Check if `validation[field] !== undefined` before accessing any of it's properties
There were the following issues with this Pull Request
You may need to change the commit messages to comply with the repository contributing guidelines. 🤖 This comment was generated by commitlint[bot]. Please report issues here. Happy coding! |
@iarspider Can you add a jsfiddle showing an example which this PR fixes. |
@hammy2899 sure: https://jsfiddle.net/eyzaq7k6/
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although your fix is correct, you applied it to the dist-folder file, which is generated at build time.
In order to get this correctly merged into the next version, please apply your changes to
Fomantic-UI/src/definitions/behaviors/form.js
instead
There were the following issues with this Pull Request
You may need to change the commit messages to comply with the repository contributing guidelines. 🤖 This comment was generated by commitlint[bot]. Please report issues here. Happy coding! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@all-contributors please add @iarspider for code |
@hammy2899 I've put up a pull request to add @iarspider! 🎉 |
This fixes Semantic-Org/Semantic-UI#5745 |
Description
When executing
form("remove fields", field) check if
validation[field] !== undefined` before accessing any of it's propertiesTestcase
Screenshot (when possible)