npm private modules

    find-focused-element
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.1 • Public • Published

    Find Focused Element

    This library provides an easy way to get a focused HTML element.

    Demo: https://stackblitz.com/edit/angular-uj2nvt

    Quick Start

    Add it to your project

    npm install --save find-focused-element

    Import using ES Modules:

    import findFocusedElem from 'find-focused-element';

    Or as a CommonJS:

    const findFocusedElem = require('find-focused-element');

    Use:

    const elem = findFocusedElem(window.document);

    Browser Support

    The library has been tested in:

    • Latest Edge, Firefox, Chrome, Opera, Safari (Mac)
    • iOS 11 Safari
    • IE 8-11

    Install

    npm i find-focused-element

    DownloadsWeekly Downloads

    2

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    5.3 kB

    Total Files

    5

    Last publish

    Collaborators

    • maximzhukov_dev