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

Use AllowUserOptions in AutocompleteSelect instead of the custom addOption() function #1045

Conversation

melinoix
Copy link
Contributor

Refactoring by using allowuseroptions and not the custom addOption function

Copy link
Contributor

@nas-tabchiche nas-tabchiche left a comment

Choose a reason for hiding this comment

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

On the right track. What remains to do before we merge it is to remove the createFromSelection prop and just pass allowUserOptions as a prop to the AutocompleteSelect component and forward it to MultiSelect.
This would simplify the component as it would remove a redundant if statement.

@melinoix
Copy link
Contributor Author

on the commit message : useless code not useful x)

Copy link
Contributor

@nas-tabchiche nas-tabchiche left a comment

Choose a reason for hiding this comment

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

LGTM

@nas-tabchiche nas-tabchiche merged commit c42e322 into main Nov 18, 2024
17 checks passed
@nas-tabchiche nas-tabchiche deleted the CA-612-use-allow-user-options-in-autocomplete-select-instead-of-the-custom-add-option-function branch November 18, 2024 11:27
@github-actions github-actions bot locked and limited conversation to collaborators Nov 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants