MCPcopy
hub / github.com/autoNumeric/autoNumeric / getHoveredElement

Method getHoveredElement

src/AutoNumericHelper.js:1451–1454  ·  view source on GitHub ↗

* Return the top-most hovered item by the mouse cursor. * * @returns {Element}

()

Source from the content-addressed store, hash-verified

1449 * @returns {Element}
1450 */
1451 static getHoveredElement() {
1452 const hoveredElements = [...document.querySelectorAll(':hover')];
1453 return hoveredElements[hoveredElements.length - 1];
1454 }
1455
1456 /**
1457 * Return the given array trimmed to the given length. The original array is also trimmed.

Callers 3

_onKeydownMethod · 0.80
_onKeydownGlobalMethod · 0.80
_onKeyupGlobalMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected