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

Hide dropdown icon to do not toggle & callback function to know if is editable or no #59

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bmartinezg
Copy link

@bmartinezg bmartinezg commented Aug 10, 2021

Motivation 😇
The first problem I had was to can't remove the toggle icon when the user is not in edit mode. If in the custom component prop to toggle receive an empty container and the user press on that area the toggle gonna trigger.

The second was to do not have a way to know if the options list is displaying or not.

Actions💻
To fix the first issue, I added a prop that allows to do not display anything.
To fix the second, I added a prop that calls a callback function to get the current status of the toggle (if the options lists are being displayed or not).

Thanks for your attention,

Bruno.

@bmartinezg bmartinezg force-pushed the feature/no-editable-with-callback branch from cb05220 to 4c510a0 Compare August 10, 2021 13:41
@bmartinezg bmartinezg changed the title MR -> Hide dropdown icon to do not toggle & callback function to know if is editable or no Hide dropdown icon to do not toggle & callback function to know if is editable or no Aug 10, 2021
@sauzy34 sauzy34 self-requested a review August 10, 2021 19:16
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.

1 participant