Options
All
  • Public
  • Public/Protected
  • All
Menu

The ModalManagerHostBridge is a bridge between the ModalManager and the host that sets up environment-specific changes when the modal opens and closes.

For instance, when the modal opens, this adds a class to the <body> tag for styling and adds a resize listener to fix a Safari shadow root issue.

Consumers can create their own ModalManagerHostBridgeInterface classes and pass them into the ModalManager if this one does not work for their environment.

export
implements

{ModalManagerHostBridgeInterface}

Hierarchy

  • ModalManagerHostBridge

Implements

Index

Constructors

constructor

Properties

Private modalManager

modalManager: ModalManagerInterface

Private windowResizeThrottler

windowResizeThrottler: throttle<() => void> = throttle(100,false,this.updateModalContainerHeight).bind(this)

Methods

Private handleModeChange

Private resumeDocumentScroll

  • resumeDocumentScroll(): void

Private startResizeListener

  • startResizeListener(): void

Private stopDocumentScroll

  • stopDocumentScroll(): void

Private stopResizeListener

  • stopResizeListener(): void

Private updateModalContainerHeight

  • updateModalContainerHeight(): void

Generated using TypeDoc