Skip to content

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.

adeeb1 added 2 commits June 9, 2018 10:30
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