Utils to manipulate Gravity Forms internal usage of simplebar.

Methods

(inner) reInitChildren(parentEl) → {void}

Re-initializes any child instances of SimpleBar that are used within a given parent element. This may be needed when you have nested SimpleBar instances as you can run into issues with the nested instances having display issues.

Parameters:
NameTypeDescription
parentElHTMLElement

The parent element to search within for nested SimpleBar instances.

Since
  • 1.2.10
Returns:
Type: 
void
Example
import { simpleBar } from "@gravityforms/utils";

function Example() {
  const parent = getNodes( 'example' )[ 0 ];
  simpleBar.reInitChildren( parent );
}