Jinja2 modal popup (Bootstrap 5) not appearing, no error

Solution
{{ power_form.power_off(type="button", class_="btn btn-danger", 
                        data_bs_toggle="modal", data_bs_target="#modalConfirm") }}