Closed mabgfounder closed 8 years ago
I just noticed the revision numbers in the patch. Those are for the project I am planning to use multiselect in. They have no relation to the multiselect repository.
Thanks for the note,will add the fix!
Fixed.
I am having that same problem now, a year later. The last character of the last selected item is cut off, both in the button itself and if I hover over it.
I am using the example code straight off the page:
$('#example-getting-started').multiselect({
buttonClass:"btn btn-link",
includeSelectAllOption: true,
delimiterText: ';'
});
I also tried using delimiterText: "\n" and getting the same result.
@TexasSwede Have you solved this problem? if yes, could you share with solution way?
I had a problem where the last character was being dropped off the displayed button text/title after users selected an option in the multiselect. The problem turned out to be that when the
delimiterText
option was set to "," (string containing a single coma) the last character was being dropped off. For example:I believe the proper fix is to have the multiselect's buttonTitle and buttonText use the delimiter.length instead of a hard coded 2. Here is a patch that I think will correct the problem.
This is my first issue report on GitHub. I apologize if formatting is messed up.