Skip to content

Commit

Permalink
Target controller on correct dom
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverguenther committed Sep 25, 2024
1 parent 9598aa7 commit 169a004
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def trigger_dropdown_menu_item(name)

def trigger_change_poll
script = <<~JS
var target = document.querySelector('[data-test-selector="meeting-page-header"]');
var target = document.querySelector('#content-wrapper');
var controller = window.Stimulus.getControllerForElementAndIdentifier(target, 'poll-for-changes')
controller.triggerTurboStream();
JS
Expand Down

0 comments on commit 169a004

Please sign in to comment.