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

feat(mui5):introducing isFilterCaseInSensitive prop for dual-list-select filterOption #1472

Conversation

AmirSaif
Copy link
Contributor

@AmirSaif AmirSaif commented Jul 7, 2024

Description

Please include a summary of the change.
introducing isFilterCaseInSensitive prop for dual-list-select filterOption.
isFilterCaseInSensitive : false -> Filtering would be Case sensitive, CaTs would not match with cats.
isFilterCaseInSensitive : true -> Filtering would not be Case sensitive, CaTs would match with cats.
Schema (if applicable)
export default {
"fields": [
{
"component": "customDualList",
"name": "MUI",
"isFilterCaseInSensitive":true,
"options": [
{
"value": "cats",
"label": "cats"
},
{
"value": "cats_1",
"label": "cats_1"
},
{
"value": "cats_2",
"label": "cats_2"
},
{
"value": "zebras",
"label": "zebras"
},
{
"value": "pigeons",
"label": "pigeons"
}
]
}
]
};

Checklist: (please see documentation page for more information)

  • Yarn build passes
  • Yarn lint passes
  • Yarn test passes
  • Test coverage for new code (if applicable)
  • Documentation update (if applicable)
  • Correct commit message
    • format fix|feat({scope}): {description}
    • i.e. fix(pf3): wizard correctly handles next button
    • fix will release a new _._.X version
    • feat will release a new _.X._ version (use when you introduce new features)
      • we want to avoid any breaking changes, please contact us, if there is no way how to avoid them
    • scope: package
    • if you update the documentation or tests, do not use this format
      • i.e. Fix button on documenation example page

Copy link

vercel bot commented Jul 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-forms ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 7, 2024 10:45pm

@@ -26,6 +26,7 @@ interface InternalDualListSelectProps {
filterOptionsText?: ReactNode;
leftValues?: DualListSelectValue[];
rightValues?: DualListSelectValue[];
isFilterCaseInSensitive?: boolean;
Copy link
Contributor

Choose a reason for hiding this comment

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

I would suggest to not use prop for it and set it as a default behavior.

@Hyperkid123 what do you think?

Copy link
Member

Choose a reason for hiding this comment

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

I'd go for default as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Raising new PR: #1473, closing this one.

@rvsia rvsia added the MUI MUI pull request label Jul 8, 2024
@AmirSaif
Copy link
Contributor Author

AmirSaif commented Jul 8, 2024

Raised a new one: #1473

@AmirSaif AmirSaif closed this Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MUI MUI pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants