Closed cycomachead closed 7 years ago
Ah, I've discovered the error! You can't call focusWithin()
before an window.onload
or $(document).ready
function has fired. If I missed this in docs, whoops. If not, it might be a helpful caveat to add.
Thanks for the awesome library, by the way!
I'm trying to setup the focusWithin polyfill and I'm setting the following error:
I'm building the app using Webpack and my ally.js file is pretty bare:
Any help would be greatly appreciated. :)