2 ms·
For `event.stopPropagation()` the best case scenario is "it makes sense here". In some cases it should be the default. A click handler did something? Stop propa
by ajkjk 4y ago
For `event.stopPropagation()` the best case scenario is "it makes sense here". In some cases it should be the default. A click handler did something? Stop propagating the event, you wouldn't want to do something else also. These cases don't require documentation.
(best-case scenario: your buttons are factored out into some component library that takes care of this for you, so the only `stopPropagation()` calls are interesting ones, ie ones that should have comments).