From 66f99a1d39ea8b7ccf44c246b39547658ce80607 Mon Sep 17 00:00:00 2001 From: Ian Gilman Date: Tue, 8 Mar 2016 09:58:50 -0800 Subject: [PATCH] Really no tabIndex if you pass "". --- src/viewer.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/viewer.js b/src/viewer.js index 8711bd01..ab782484 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -234,7 +234,9 @@ $.Viewer = function( options ) { style.left = "0px"; }(this.canvas.style)); $.setElementTouchActionNone( this.canvas ); - this.canvas.tabIndex = (options.tabIndex === undefined ? 0 : options.tabIndex); + if (options.tabIndex !== "") { + this.canvas.tabIndex = (options.tabIndex === undefined ? 0 : options.tabIndex); + } //the container is created through applying the ControlDock constructor above this.container.className = "openseadragon-container";