Part from the actual switching (between tabs) the header is also visually marked as active. If the header name contains only us-ascii characters everything works as expected however a header containing international characters such as our Scandinavian åäö multiple clicks are required to mark the tab as active.
Been able to reproduce the issue at smw sandbox --> https://sandbox.semantic-mediawiki.net/wiki/Utilisateur:Isrjo where tabs Foo and Bar works fine, but Räksmörgås does not.