Closed kashifcodility closed 2 months ago
@kashifcodility Turbo doesn't provide any means to execute JS, you'll have to use Stimulus for that.
Also, Github issues are for reporting bugs, you should use the Hotwire forum to ask usage questions.
ok i use
<button type="submit" data-action="click->comment#closePopup" data-turbo="true" class="inline-flex items-center px-5 py- 2.5 text-sm font-medium text-center text-white bg-blue-700 rounded-lg focus:ring-4 focus:ring-blue-200 dark:focus:ring-blue-900 hover:bg-blue-800">
Comment
</button>
this is also working
<%= turbo_stream.after "feeds-list-#{@feed.id}" do %>
<script>
console.log("hooooi")
</script>
<% end %>
here is my comment controller code
my 'create.turbo_stream.erb' code is below
How this is possible to execute some js code, beacause i want to hide pop up div using js here?
Thanks
i tried different option to execute js but not working.