File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,6 @@ export default function () {
2525 // The button is hidden by default so it doesn't appear on browsers with JS disabled.
2626 // If there are images on a docs page and JS is enabled, display the toggle button.
2727 toggleImagesBtn . removeAttribute ( 'hidden' )
28- // Remove focus from the button after click so the tooltip does not stay displayed.
29- toggleImagesBtn . blur ( )
3028
3129 // Look for a cookie with image visibility preference; otherwise, use the default.
3230 const hideImagesPreferred = ( Cookies . get ( 'hideImagesPreferred' ) === 'true' ) || hideImagesByDefault
@@ -118,6 +116,9 @@ export default function () {
118116 toggleImages ( images , 'show' , tooltipHideSingle )
119117 }
120118
119+ // Remove focus from the button after click so the tooltip does not stay displayed.
120+ toggleImagesBtn . blur ( )
121+
121122 // Save this preference as a cookie.
122123 Cookies . set ( 'hideImagesPreferred' , showOnNextClick )
123124
You can’t perform that action at this time.
0 commit comments