David Kimura PRO said about 2 years ago on Embedding Youtube Videos into Action Text with Stimulus :
It will probably work with UJS, but I would probably move things over to a fetch so that it will work longer term if you move fully to hotwire.

I haven't tried it out with two actiontexts, there may be somethings that need to change with the controller to handle it properly with two action texts on the same view.