This is actually a very "dirty" fix for the problem.
I tried fixing this in javascript first. But that wasn't that easy and it will change again when being migrated to vue nevertheless. This topic might need to be revisited then maybe.
ping @diosmosis
fixes #19252