title: Rails UJS not firing with Rails 7
body: <p>I upgraded my Rails application to Rails 7. I know that Turbolinks and Rails UJS actually are replaced by the Hotwire combination of Stimulus and Turbo in Rails 7, but I wanted to know whether I can still use UJS and if yes, why is it not working?</p>
  <p>My method that is not working looks like this:</p>
  <pre><code>  submit(event) {
      this.errorTarget.classList.add(&quot;hidden&quot;)
      Rails.fire(this.formTarget, &quot;submit&quot;)
      console.log('hi')
    }
  
  </code></pre>
  <p>The console.log works. When I click on an element, it used to change with this code, but now it doesn't change anymore. <code>Rails.fire</code> simply does not fire anymore and there is no error in the log or in the network part when I inspect the website.</p>
  <p>I feel like I am missing something crucial here, but I don't know what.</p>