New Discussion

Notifications

You’re not receiving notifications from this thread.

Realtime Chat Part 2 Discussion

2
General

Why not using stimulus data-action="keypress->conversation#submitForm" on text area instead of addEventListener?

Funny you should say that because in the next video (spoiler alert!), where we add some more stimulus, I refactor our code to do this but still with the keydown event.

oh, i see :D

Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 89,127+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.