Button in list item (jsfiddle)


I am trying to use button in list item.
This is a problem because any click causes link to follow list link.
How can I use the button inside list item without following link?
Example - https://jsfiddle.net/testideah3/n63xwj9p/7/

Thank you!

Вам нужно в событии на кнопке использовать stopPropagation() - это остановит “поднятие” события вверх до элемента списка.

1 Like

You have your href around the entire block so it will always fire first…

If you move the closing to not include your stepper it should do what you want it to.