DEV Community

Cijin Cherian
Cijin Cherian

Posted on

Project 1, Week 2, Day 5

You learn something new everyday :D. All I wanted was to style the li element so that it would only be as long as the length of the text and also (this is something, i'm yet to figure out) display as a block. Instead ended up figuring out why the chat input was getting submitted even when it was empty. Took a long while for me to realize that I had switched it to a textarea and that I need to trim() the text before I check if it's empty.

Anyway, that's the only thing I managed this evening.

PR

Top comments (0)