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
Which is causing the following error, only in Safari:
TypeError: r.match is not a function. (In 'r.match(s)', 'r.match' is undefined)
This is happening because the "r" argument of Typekit's custom setAttribute is expected to be a string, however it's receiving an integer 0, which has no match function.
So the fix is just change the line above to:
node.setAttribute('tabindex','0');
The text was updated successfully, but these errors were encountered:
I found an extreme edge case bug but nevertheless it's something I believe could effect many users of this project.
It turns out Typekit's code snippet overrides
Element.prototype.setAttribute
as follows:And in the Tab.js component we have this:
Which is causing the following error, only in Safari:
TypeError: r.match is not a function. (In 'r.match(s)', 'r.match' is undefined)
This is happening because the "r" argument of Typekit's custom
setAttribute
is expected to be a string, however it's receiving an integer 0, which has nomatch
function.So the fix is just change the line above to:
The text was updated successfully, but these errors were encountered: