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

OBPIH-5090 adjust field length with field content in select fields of reusable filter component #3682

Conversation

drodzewicz
Copy link
Collaborator

No description provided.

@drodzewicz
Copy link
Collaborator Author

filter input width is dependant on the width of the content that is displayed in the input or width of the placeholder

I have also cherry-picked a commit from OBPIH-5171 from hotfix-2 because I figured that it might have an impact on the behavior of the filterSelect component

@drodzewicz drodzewicz force-pushed the OBPIH-5090-adjust-field-length-with-field-content-in-select-fields-of-reusable-filter-component branch from 4a2c20a to a51a3ad Compare December 5, 2022 17:56
…the input

filter input width is dependant on the width of the content that is displayed in the input or width of the placeholder
@drodzewicz drodzewicz force-pushed the OBPIH-5090-adjust-field-length-with-field-content-in-select-fields-of-reusable-filter-component branch from a51a3ad to e33c5ff Compare December 6, 2022 08:54
Copy link
Collaborator

@kchelstowski kchelstowski left a comment

Choose a reason for hiding this comment

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

Besides one doubt, which is rather just a question, good job :)

disabled={!allowEmptySubmit && _.every(values, value => !value)}
variant="primary"
type="submit"
type="button"
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm just wondering why it has been changed? Isn't onSubmit unnecessary now?
What were the sideeffects that onClick={() => updateFilterParams(values)} handles and submit doesn't, if onSubmit we are also calling the same (updateFilterParams)?

@awalkowiak awalkowiak merged commit ba777fd into develop Dec 6, 2022
@awalkowiak awalkowiak deleted the OBPIH-5090-adjust-field-length-with-field-content-in-select-fields-of-reusable-filter-component branch December 6, 2022 22:21
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.

None yet

3 participants