mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
Update AdminLTE
- from 2.4.5 to 2.4.18 (cannot detect any issues) - set default scancycle for Apple Devices to 1
This commit is contained in:
@@ -254,4 +254,35 @@ test('removing a selected option changes the value', function (assert) {
|
||||
);
|
||||
|
||||
syncDone();
|
||||
});
|
||||
});
|
||||
|
||||
test('searching tags does not loose focus', function (assert) {
|
||||
assert.expect(1);
|
||||
|
||||
var asyncDone = assert.async();
|
||||
var $ = require('jquery');
|
||||
var Options = require('select2/options');
|
||||
var Select2 = require('select2/core');
|
||||
|
||||
var $select = $(
|
||||
'<select multiple="multiple">' +
|
||||
' <option value="1">Text1</option>' +
|
||||
' <option value="2">Text2</option>' +
|
||||
'</select>'
|
||||
);
|
||||
|
||||
$('#qunit-fixture').append($select);
|
||||
|
||||
var select = new Select2($select, {tags: true});
|
||||
|
||||
var inputEl = select.selection.$search[0];
|
||||
inputEl.focus();
|
||||
|
||||
select.on('selection:update', function() {
|
||||
assert.equal(document.activeElement, inputEl);
|
||||
asyncDone();
|
||||
});
|
||||
|
||||
select.selection.trigger('query', {term: 'f'});
|
||||
select.selection.trigger('query', {term: 'ff'});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user