Files
wekan/client/components/lists
Lauri Ojansivu df27e349d9 Mobile mode: the Add List + no longer opens the list as well.
Regression from moving Add List into the mobile list header in 61979c0f6. In mobile
mode the whole list row is an `a.mini-list.js-select-list` and the + sits INSIDE it,
so one click did both things: it opened the composer AND selected the list, so asking
to add a list took you into one instead.

The handler already called preventDefault, which is a different thing - it stops the
anchor's own navigation, not the click travelling up to the ancestor's handler. It
needs stopPropagation.

Harmless on desktop, where the button is not nested inside a select-list anchor.

Tests: 1340 passing.

Thanks to xet7 !
2026-07-25 22:34:13 +03:00
..