Not able to send multiple events with JS.push in phx-submit

If you put a call to IO.inspect between them you may see your issue.

EDIT: just to make it a little less vague, keep in mind that pipes aren’t just subsequent calls, it creates a pipeline where the result of the previous step is passed as the first parameter to the next step.