diff --git a/inception/inception-js-api/src/main/ts/src/util/ViewportTracker.ts b/inception/inception-js-api/src/main/ts/src/util/ViewportTracker.ts index 0a7d3434ada..9701f78d998 100644 --- a/inception/inception-js-api/src/main/ts/src/util/ViewportTracker.ts +++ b/inception/inception-js-api/src/main/ts/src/util/ViewportTracker.ts @@ -77,6 +77,10 @@ export class ViewportTracker { return false } + if (!element.textContent) { + return false; + } + return style.display === 'block' || style.display === 'flex' || style.display === 'grid' || style.display === 'table-row'