-
Notifications
You must be signed in to change notification settings - Fork 723
Closed
Description
Clicking outside of the keyboard, on an SVG image (for example) fails with Uncaught TypeError: $target[0].className.indexOf is not a function.
At
Keyboard/js/jquery.keyboard.js
Line 1829 in cf27d1d
| if ($target.length && $target[0].className.indexOf(kbcss.keyboard) > -1) { |
if($target.length && $target.hasClass(kbcss.keyboard))
OR
var hasClassName = typeof($target[0].className) === "string" ? $target[0].className.indexOf(kbcss.keyboard) > -1 : false;
// needed for IE to allow switching between keyboards smoothly
if ($target.length && hasClassName) {
For context, $target[0].className is: SVGAnimatedString {baseVal: "map_image", animVal: "map_image"}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels