Module

utils/dom/findclosestscrollableancestor

@ckeditor/ckeditor5-utils/src/dom/findclosestscrollableancestor

module

Filtering

Functions

  • findClosestScrollableAncestor( domElement ) → null | HTMLElement

    Returns the closest scrollable ancestor of a DOM element.

    Parameters

    domElement : HTMLElement

    DOM element.

    Returns

    null | HTMLElement

    First ancestor of domElement that is scrollable or null if such ancestor doesn't exist.