mirror of
https://github.com/twbs/bootstrap.git
synced 2025-06-06 00:03:01 -04:00
Fix test to retrieve the proper item instead of it's parent
This commit is contained in:
parent
8da2815e47
commit
9daf681478
@ -451,7 +451,7 @@ $(function () {
|
|||||||
$dropdown.trigger($.Event('keydown', { which: 40 }))
|
$dropdown.trigger($.Event('keydown', { which: 40 }))
|
||||||
$dropdown.trigger($.Event('keydown', { which: 40 }))
|
$dropdown.trigger($.Event('keydown', { which: 40 }))
|
||||||
|
|
||||||
assert.ok(!$(document.activeElement).parent().is('.disabled'), '.disabled is not focused')
|
assert.ok(!$(document.activeElement).is('.disabled'), '.disabled is not focused')
|
||||||
})
|
})
|
||||||
|
|
||||||
QUnit.test('should not close the dropdown if the user clicks on a text field', function (assert) {
|
QUnit.test('should not close the dropdown if the user clicks on a text field', function (assert) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user