We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 205c3b6 commit f712f9dCopy full SHA for f712f9d
test/basic.spec.js
@@ -119,6 +119,13 @@ describe('basic suite', function() {
119
expect($('.selectric-items').find('.highlighted').length).toBe(0);
120
});
121
122
+ it('should skip blank alternative text with separator', function () {
123
+ select.find('option:eq(6)').attr('data-alt', '|');
124
+ select.selectric('refresh');
125
+ $('.selectric-input').val('a text that does not exist').trigger('input');
126
+ expect($('.selectric-items').find('.highlighted').length).toBe(0);
127
+ });
128
+
129
it('highlight() should return undefined if index is undefined', function () {
130
expect(select.data('selectric').highlight(undefined)).toBe(undefined);
131
0 commit comments