Select the first erroneous tab in a form if multiple are erroneous
authorTim Düsterhus <duesterhus@woltlab.com>
Tue, 5 Jul 2022 07:51:24 +0000 (09:51 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Tue, 5 Jul 2022 07:51:24 +0000 (09:51 +0200)
commit6178204317b3f332605019684b0c22c48834ae4d
tree4e02f6bd07e348a9670f2b9ca29aeb584d70a0f7
parent502eda18fe33e463d7d400623c599b8b8e6b7e73
Select the first erroneous tab in a form if multiple are erroneous

This was incorrectly migrated to TypeScript. Before TypeScript this used a
regular `for` loop counting indices, allowing the `return;` to correctly leave
the loop.

see https://www.woltlab.com/community/thread/296198-formbuilder-tabmenuformcontainer-required-js-fehler/
ts/WoltLabSuite/Core/Ui/TabMenu.ts
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/TabMenu.js