Skip to content

Commit

Permalink
Update docs/_basic/listening_modals.md
Browse files Browse the repository at this point in the history
Co-authored-by: Sarah Jiang <[email protected]>
  • Loading branch information
TheManWhoStaresAtCode and srajiang authored Nov 19, 2021
1 parent ec8dda3 commit 349e4fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/_basic/listening_modals.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ app.view('view_b', async ({ ack, body, view, client }) => {

You can use the `view` method to listen for `view_closed` requests, which Slack will send when the user closes a view. Note: the closed [view](https://api.slack.com/reference/block-kit/views) must have the `notify_on_close` field set to `true`.
The event contains the respective `callback_id` of the closed view.
Please note that you have to specify the `type: 'view_closed'` in the constraint object explicitly, since otherwise the handler is not triggered.
💡 When listening for `view_closed` requests, you must pass an object containing `type: 'view_closed'` and the view `callback_id`. See below for an example of this:

See the <a href="https://api.slack.com/surfaces/modals/using#modal_cancellations">API documentation</a> for more information about `view_closed.

Expand Down

0 comments on commit 349e4fe

Please sign in to comment.