For now I have solved the problem with a timeout:
I placed setTimeout (()=> $w ( ‘#statebox8’ ). show (), 100 )
at the end of my code.
What’s rather strange is that it solved the problem when switching between languages but when I’m in the Hebrew site, moving between pages it still first shows the default statebox (which is LTR) and then only switches to the RTL statebox. I don’t know if this is a bug in Wix because I really cannot find a way to resolve this.
To see the problem please visit www.tendermind.ai and choose Hebrew. You’ll see that when switching from English to Hebrew on whichever page the timeout works but when moving between pages in Hebrew the hiding of the statebox and subsequent timeout to show the box doesn’t do anything. In fact I lengthened the timeout to a full 5 seconds to see if it would work and it made no difference. It’s as if the hidden state and the timeout don’t actually work although I set the hidden state directly on the statebox and checked that it shows as hidden both in English and Hebrew as well as for all statebox statuses.
Any thoughts on whether this is a Wix bug or if there is something I can do to fix this?