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 disabledText only when multiselect is actually disabled #1029

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

adeeb1
Copy link

@adeeb1 adeeb1 commented Jun 9, 2018

Builds on #715 to fix #714.

Previously, the disabledText will display if no options are selected on the multiselect and disableIfEmpty is set to true, even if there are options present in the multiselect. I changed the condition to check for the number of total options in the select rather than the number of selected options. Whether or not any options are selected is irrelevant.

Remove unnecessary condition causing the bug.
Retrieve the number of options rather than the number of selected options.
@adeeb1 adeeb1 changed the title Use disabledText only when multiselect is disabled Use disabledText only when multiselect is actually disabled Jun 9, 2018
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.

nonSelectedText is ignored when disableIfEmpty is true
1 participant