Skip to content

Commit 68af7ec

Browse files
jaksenkodiasbruno
authored andcommitted
[added] tabbable support for iframes
Iframes are, just like a button, anchor or inputs, an interactive element that should be focusable in modal. For example I play youtube videos in modals. Keyboard users should be able to pause video (or trigger any other action) as well.
1 parent 28986ea commit 68af7ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/helpers/tabbable.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* http://api.jqueryui.com/category/ui-core/
1111
*/
1212

13-
const tabbableNode = /input|select|textarea|button|object/;
13+
const tabbableNode = /input|select|textarea|button|object|iframe/;
1414

1515
function hidesContents(element) {
1616
const zeroSize = element.offsetWidth <= 0 && element.offsetHeight <= 0;

0 commit comments

Comments
 (0)