3 ms·
> That doesn't quite get you there, though. For example, it doesn't submit a form it is contained in when clicked. Er sorry, I meant type="button" for both. Ne
by eyelidlessness 4y ago
> That doesn't quite get you there, though. For example, it doesn't submit a form it is contained in when clicked.
Er sorry, I meant type="button" for both. Neither submit a form or do anything other than show the default interactive styles without JS.
> There are some use cases where a <button> won't work (eg if you want to use flexbox)
I’m not sure what you mean, and having a hard time imagining what you might mean. Can you elaborate?
- Vinnl 4y agoMy example was wrong, your sibling comment [1] provided a better one. [1] https://news.ycombinator.com/item?id=33173406 https://news.ycombinator.com/item?id=33173406