Skip to content

Commit da2c13c

Browse files
committed
use .blur() to remove focus from image buttons after click
1 parent 6a708b9 commit da2c13c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

javascripts/toggle-images.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ export default function () {
4040
} else {
4141
toggleImage(img, 'hide', tooltipShowSingle)
4242
}
43+
44+
// Don't leave the button in focus after click or the tooltip will stay displayed.
45+
parentButton.blur()
4346
})
4447
}
4548

0 commit comments

Comments
 (0)