inesita-rb / inesita-router

MIT License
2 stars 1 forks source link

Enable link functionality for nested elements #3

Open sonicdes opened 5 years ago

sonicdes commented 5 years ago

This change makes it possible to trigger router events from elements nested inside <a>s by looking up the pathname property of the element to which the onclick event was added, instead of the child element which was actually clicked.