You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've run into an issue with v3.0.0-dev, where with keyboard navigation, focus is not returned to the initial element (within an SVG) when using the escape key.
the offending lines
// We return focus only if the current focus is inside this instance
if (
activeElement
// &&
// (
// document.activeElement === element[0] ||
// $.contains(element[0], document.activeElement)
// )
) {
try {
activeElement?.focus(); // optional chaining
} catch (e) {
// Ignore exceptions, eg. for SVG elements which can't be
// focused in IE11
console.log(e);
}
}
Im my tests removing the checks and applying optional chaining on the activeElement?.focus(); results in the ideal behaviour, but obviously breaks IE11 compatibility.
The text was updated successfully, but these errors were encountered:
I've run into an issue with
v3.0.0-dev
, where with keyboard navigation, focus is not returned to the initial element (within an SVG) when using the escape key.the offending lines
Im my tests removing the checks and applying optional chaining on the
activeElement?.focus();
results in the ideal behaviour, but obviously breaks IE11 compatibility.The text was updated successfully, but these errors were encountered: