function buttonClick(response = false) {
    // run action handler
    if (typeof callBackFn === "function") {
        callBackFn(response);
    }

    // close and clear modal content state
    modalElement.close();
    callBackFn = null;
    modalContent = null;
}
Handle modal button click.

Trigger callback with boolean response, hide modal, clear values.

@since 3.8.0