From 68af7ecdd79993dfcc1508587f1e145465f28f85 Mon Sep 17 00:00:00 2001 From: jaksenko <87317406+jaksenko@users.noreply.github.com> Date: Wed, 20 Oct 2021 10:14:41 +0200 Subject: [PATCH] [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. --- src/helpers/tabbable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/tabbable.js b/src/helpers/tabbable.js index 82332360..185f74e4 100644 --- a/src/helpers/tabbable.js +++ b/src/helpers/tabbable.js @@ -10,7 +10,7 @@ * http://api.jqueryui.com/category/ui-core/ */ -const tabbableNode = /input|select|textarea|button|object/; +const tabbableNode = /input|select|textarea|button|object|iframe/; function hidesContents(element) { const zeroSize = element.offsetWidth <= 0 && element.offsetHeight <= 0;