bootstrap-multiselect icon indicating copy to clipboard operation
bootstrap-multiselect copied to clipboard

Use disabledText only when multiselect is actually disabled

Open adeeb1 opened this issue 7 years ago • 0 comments

Builds on https://github.com/davidstutz/bootstrap-multiselect/pull/715 to fix https://github.com/davidstutz/bootstrap-multiselect/issues/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 avatar Jun 09 '18 17:06 adeeb1