]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commit
test: give time to IE to render elements before testing focus 11275/head
authorNicolas Coden <nicolas@ncoden.fr>
Wed, 16 May 2018 21:36:12 +0000 (23:36 +0200)
committerNicolas Coden <nicolas@ncoden.fr>
Wed, 16 May 2018 21:36:12 +0000 (23:36 +0200)
commit1c36420a4ec557214d2003b36d20044284a472aa
tree48cfe7eb90f39488ffac0a968648da179882e06d
parentdc02330534f95ce2f986f6ae8e215cf6676e760f
test: give time to IE to render elements before testing focus

For all the following tests testing the currently focused elements,
IE 9/10/11 may not focus the tested element because is is still
rendering. To prevent this, we wait after the component initialization.

Fixing this IE behavior in components would require to delay the focus
for all browsers then trigger a "ready" event.

See https://stackoverflow.com/a/2600261/4317384
See https://stackoverflow.com/a/36032615/4317384
test/javascript/components/dropdownMenu.js