Katochimoto/xblocks

View on GitHub
src/utils/lazyFocus.js

Summary

Maintainability
A
0 mins
Test Coverage
import context from 'context';

/**
 * @function xblocks.utils.lazyFocus
 * @param {HTMLElement} node
 */
export default function (node) {
    context.setTimeout(node.focus.bind(node), 0);
}