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

HBW-366 Don't highlight multi nullable select_table #603

Merged
merged 1 commit into from
Oct 14, 2021

Conversation

ghost
Copy link

@ghost ghost commented Sep 28, 2021

HBW-366 Don't highlight red multi nullable select_table if nothing is selected.

master
nullable: true
multi: true
Video
multinullable.mov
nullable: false
multi: true
Video
multi.mov
nullable: true
multi: false
Video
nullable.mov
nullable: false
multi: false
Video
nothing.mov
v2.6
nullable: true
multi: true
Video
nullablemulti.mov
nullable: false
multi: true
Video
multi.mov
nullable: true
multi: false
Video
nullable.mov
nullable: false
multi: false
Video
nothing.mov

Copy link
Member

@TimAle TimAle left a comment

Choose a reason for hiding this comment

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

I don't think it should have a red border as the initial state regardless of the nullable option value.

@@ -20,7 +20,7 @@ modulejs.define('HBWFormSelectTable',
this.state = {
value: Array.isArray(value) ? value.map(el => String(el)) : String(value),
choices: this.getChoices(),
error: (!props.hasValueInChoices(value) && value) || props.missFieldInVariables(),
Copy link
Member

Choose a reason for hiding this comment

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

We still need to warn users about missing fields in BP variables.

@hydra-billing-robot hydra-billing-robot merged commit a3603f2 into master Oct 14, 2021
@hydra-billing-robot hydra-billing-robot deleted the HBW-366 branch October 14, 2021 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants