You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS info Microsoft Windows [Version 10.0.19045.5487]
Describe the bug
When a modal is opened using client.views.open, the modal displays correctly. However, after the modal is updated via client.views.update to include interactive elements (with dispatch_action: true), these elements do not trigger any block action events when interacted with. Although the updated modal renders without errors, user interactions (e.g. selecting a user in a users select element) produce no event payloads, and Slack logs no detailed errors.
Steps to reproduce
Create a basic Slack app using the deno-slack-sdk.
Open a modal using client.views.open and output the returned view ID and hash.
Update the modal view via client.views.update, ensuring that interactive elements (with dispatch_action: true) are present in the updated view.
Interact with one of the interactive elements in the updated modal.
Observe that no block action payload is received by the handler—the UI briefly shows a loading spinner, then displays an error icon—while no error messages or logs are produced by Slack.
Expected result
Interactive elements in the updated modal should trigger block action events, and the registered action handlers (via addBlockActionsHandler or addViewSubmissionHandler) should receive the interactive payload.
Actual result
After the modal is updated with client.views.update, interactive elements do not dispatch any events. The modal appears unresponsive to user interactions even though all interactive properties (e.g. dispatch_action: true) are present. No error messages or payload logs are received from Slack.
For context, the intended workflow is to use an initial modal step to capture an interaction payload and open a placeholder modal to avoid timing out. In a subsequent step, values are fetched from a datastore (or similar source) and then used to update the modal view with pre-filled input values. Up to that point, everything works fine and the view is updated as expected. However, once the modal is updated via client.views.update, any interaction with the updated input elements (e.g., user selects) fails to trigger any response.
I reviewed the documentation and couldn’t find any specific notes on this behavior. I suspect that updating the view on its own—without a fresh user interaction—might be causing Slack to “use up” the initial interactivity payload, leading to subsequent dispatch actions not being recognized.
Hi @Aze331 - thanks for bringing this to our attention! The team's been out this week for a conference, so give us some time to look into reproducing this and we'll get back to you with a proper response. 🙂
The
deno-slack
versionsDeno runtime version
OS info
Microsoft Windows [Version 10.0.19045.5487]
Describe the bug
When a modal is opened using
client.views.open
, the modal displays correctly. However, after the modal is updated viaclient.views.update
to include interactive elements (withdispatch_action: true
), these elements do not trigger any block action events when interacted with. Although the updated modal renders without errors, user interactions (e.g. selecting a user in a users select element) produce no event payloads, and Slack logs no detailed errors.Steps to reproduce
client.views.open
and output the returned view ID and hash.client.views.update
, ensuring that interactive elements (withdispatch_action: true
) are present in the updated view.Expected result
Interactive elements in the updated modal should trigger block action events, and the registered action handlers (via
addBlockActionsHandler
oraddViewSubmissionHandler
) should receive the interactive payload.Actual result
After the modal is updated with
client.views.update
, interactive elements do not dispatch any events. The modal appears unresponsive to user interactions even though all interactive properties (e.g.dispatch_action: true
) are present. No error messages or payload logs are received from Slack.The text was updated successfully, but these errors were encountered: