New Discussion

Notifications

You’re not receiving notifications from this thread.

Message Form Handling with Stimulus Discussion

8
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

@amora321 I haven't had a problem with data attrributes so far. Seems you can do anything ;)

Great advice on how to make form submissions work better without clicks. A smooth UX is very important! This level of frontend polish is gold for anyone who wants to make live SoundBoard experiences or change the way sound buttons work.

Join the discussion
Create an account Log in