MCPcopy
hub / github.com/reactjs/react-modal / isNotOverflowing

Function isNotOverflowing

src/helpers/tabbable.js:19–25  ·  view source on GitHub ↗
(element, style)

Source from the content-addressed store, hash-verified

17const tabbableNode = /^(input|select|textarea|button|object|iframe)$/;
18
19function isNotOverflowing(element, style) {
20 return (
21 style.getPropertyValue("overflow") !== "visible" ||
22 // if 'overflow: visible' set, check if there is actually any overflow
23 (element.scrollWidth <= 0 && element.scrollHeight <= 0)
24 );
25}
26
27function hidesContents(element) {
28 const zeroSize = element.offsetWidth <= 0 && element.offsetHeight <= 0;

Callers 1

hidesContentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…