Skip to content

API Reference: Remove

James edited this page Mar 8, 2022 · 2 revisions

Due to the obscure naming convention it might be confusing as to what this method does. Rest assured, this page will help you out. The remove method, deletes the modal from the DOM. It only takes one parameter, which is the DOM Node that you want to return the focus to once the modal is removed. As per accessibility guidelines, this should be the button used to open the modal in the first place.

parameter name Description Type Default value
initiatorButton The DOM node you wish to focus, once the modal is removed. false or DOM Node false

Clone this wiki locally